Wladastic / Auto-GPT-Telegram-Plugin

MIT License
56 stars 8 forks source link

Disclaimer!

This plugin became a first party plugin and can now be found at the official plugin repo: https://github.com/Significant-Gravitas/Auto-GPT-Plugins

Needless to say, I will still work on this plugin, but will try to prioritize the first party one at https://github.com/Significant-Gravitas/Auto-GPT-Plugins

Thank you all for using, feel free to apply PR's there! :)

Telegram Plugin for Auto-GPT

A smoothly working Telegram bot that gives you all the messages you would normally get through the Terminal. Making Auto-GPT a more user-friendly application to interact with.

SETUP

First setup a telegram bot by following the instructions here: https://core.telegram.org/bots#6-botfather

Then set the following variables in your .env:

TELEGRAM_API_KEY=your-telegram-bot-token
TELEGRAM_CHAT_ID=your-telegram-bot-chat-id

ALLOWLISTED_PLUGINS=AutoGPTTelegram
CHAT_MESSAGES_ENABLED=True

within your .env file. Also keep in mind to use the official documentation on how to use plugins.

to obtain your chat id, send a message to your bot and then use the following command:

curl https://api.telegram.org/bot{your-telegram-bot-token}/getUpdates

Running Auto-GPT with this plugin

To run this plugin, zip this repo and put it under Auto-GPT/plugins/ To run it, add the following to your start command:

For non docker:
python -m autogpt --install-plugin-deps

For Docker:
docker-compose run --rm auto-gpt --install-plugin-deps

Auto-GPT-Plugins

Plugins for Auto-GPT

Clone this repo into the plugins direcory of Auto-GPT

For interactionless use, set ALLOWLISTED_PLUGINS=example-plugin1,example-plugin2,example-plugin3 in your .env

Plugin Description
Telegram AutoGPT is capable of asking/prompting the user via a Telegram Chat bot and also responds to commands and messages.