AutoGPT
AutoGPT copied to clipboard
Telegram Bot integration & Voice Prompt
Background
Adding 2 new prompt options:
- Telegram bot (have to fix it, threading is wrong, it succeeds to send a message but the webhook won't work)
- voice prompt (just realized it can work on WIndows and Linux too lol)
Changes
Documentation
You have to create a telegram bot with botfather and get the chat_id after chatting with your bot the first time.
Once you set the bot up run:
To start run from AutoGPT folder :"python ./autogpt/start_bot.py --gpt3only" or "python3 ./autogpt/start_bot.py --gpt3only"
it passes all the arguments into autogpt.
It will tell you through telegram to send "/start" to start it. You can always use "/stop" to stop it and "/start" to start again.
I made the bot be able to restart your autogpt by this ;-)
Test Plan
PR Quality Checklist
- [x] My pull request is atomic and focuses on a single change.
- [x] I have thoroughly tested my changes with multiple different prompts.
- [x] I have considered potential risks and mitigations for my changes.
- [x] I have documented my changes clearly and comprehensively.
- [x] I have not snuck in any "extra" small tweaks changes
@Wladastic There are conflicts.
@Wladastic There are conflicts.
It also doesn't work yet... I have issues starting it, because telegram expects you to run your server from within the telegram bot, as it's run_polling method waits for input and freezes the thread lol
If it doesn't work yet GitHub lets you to convert a PR to a draft PR
@nponeccop Feel free to test. It's kindda flacky still but I probably need some help fixing the thread blocking by waiting for the users's response. It works, but sometimes just gets stuck at the responce_received.wait()

@Wladastic There are conflicts and red CI now
@Wladastic The CI is still red (just in case you didn't notice)
I know, only updated.I found a better was to implement it with the new structure of the project but have to fix some stuff, as it still get’s stuch at response.wait() and doesn’t let the application poll do an update, I didn’t do much python before hahaAny ideas?Am 15.04.2023 um 18:29 schrieb nponeccop @.***>: @Wladastic The CI is still red (just in case you didn't notice)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
@Wladastic The CI is still red (just in case you didn't notice)
It now works! Waiting for the pipelines to finish so that I can see what whitespaces I missed, then it's ready to be merged! :)

@richbeales if this is marked plugin, will it be skipped or what does it mean?
@nponeccop will need your approve again, there have been many changes on master and I had to test and fix some stuff. Also I rebuilt the /start /stop handlers, you can now just /stop the bot and /start again without having to touch the console ever :D
@nponeccop sorry mate, had to fix the conflicts due to some merges.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
No idea what black does?!
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
Like #2593, this is functionality that fits better in a plugin than in the core. If you need help converting it to a plugin, [at]BillSchumacher is happy to help. :)
Yup we already talk. only issue is wrapping autogpt with the bot as I added a possibility to restart autogpt by telegram
I started making a plugin here: https://github.com/Wladastic/Auto-GPT-Telegram-Plugin If anyone likes to assist, I would be glad :)