-
Notifications
You must be signed in to change notification settings - Fork 44.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Send Telegram Message Functionality #2593
Added Send Telegram Message Functionality #2593
Conversation
I very well see that PR transforming into a Plugin, since we are getting a bunch of them, please check on #757 it is expected to be |
Yeah, it's more suitable as a plugin. I'll convert it when plugin.py is released :) |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
@Reno-Codes plugin support will ship very soon, it was just merged to |
please check this PR first: |
@Wladastic Your Telegram bot requires too much effort for an average user. The average user wouldn't be able to Why not just paste the bot token and AutoGPT should handle getting chatID automatically. |
the average user just has to visit https://api.telegram.org/bot/getUpdates with their browser. |
Also the gathering method is very insecure, please also keep in mind that your bot receives messages by everyone. |
Yeah, that would work, AutoGPT handling this by itself... I know the gathering method is insecure, I made it that way for bots that are only made for purpose of notifying users who made that bot specifically for this purpose, and not for bots that receive messages from other users too. Your approach seems pretty solid, looking forward to seeing it as a plugin since I'm using it in pretty much every AutoGPT goal. |
As a headsup, this will work soon as a plugin. Context: otherwise there are a few methods missing on the class the object of the plugin is casted to. |
Background
While waiting for AutoGPT to do tasks, It's useful to receive a notification message on Telegram when some task is done.
I know it's a potential plugin, but many people will find it essential to receive notifications on Telegram about their AutoGPT status.
Changes
Added telegram.py in the commands folder.
Added entries for it in app.py and prompt.py.
Documentation
Create a bot on telegram by contacting @Botfather.
Give your Telegram bot a name, like "AutoGPT Notifier" or whatever.
Copy bot token from telegram and paste it into TELEGRAM_BOT_TOKEN in your .env file.
While setting up a GOAL for AutoGPT, just write something like "Send telegram message when done with previous tasks." or whatever you'd like to receive as a notification from your AI.
Test Plan
PR Quality Checklist