Skip to content
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

Telegram Bot integration & Voice Prompt #1135

Closed
wants to merge 75 commits into from

Conversation

Wladastic
Copy link
Contributor

@Wladastic Wladastic commented Apr 13, 2023

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

  • My pull request is atomic and focuses on a single change.
  • I have thoroughly tested my changes with multiple different prompts.
  • I have considered potential risks and mitigations for my changes.
  • I have documented my changes clearly and comprehensively.
  • I have not snuck in any "extra" small tweaks changes

@Wladastic Wladastic changed the title Preview/Draft: Telegram Bot integration & MacOS Voice Prompt Preview/Draft: Telegram Bot integration & Voice Prompt Apr 13, 2023
@nponeccop
Copy link
Contributor

@Wladastic There are conflicts.

@Wladastic
Copy link
Contributor Author

@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

@nponeccop
Copy link
Contributor

If it doesn't work yet GitHub lets you to convert a PR to a draft PR

@Wladastic Wladastic marked this pull request as draft April 13, 2023 21:04
voices/voices.sh Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

@github-actions github-actions bot removed the conflicts Automatically applied to PRs with merge conflicts label Apr 18, 2023
@Wladastic Wladastic requested a review from nponeccop April 18, 2023 20:40
@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Apr 18, 2023
@github-actions
Copy link
Contributor

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

@github-actions github-actions bot removed the conflicts Automatically applied to PRs with merge conflicts label Apr 19, 2023
@github-actions
Copy link
Contributor

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

@Wladastic Wladastic mentioned this pull request Apr 19, 2023
1 task
@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Apr 19, 2023
@github-actions
Copy link
Contributor

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

@github-actions github-actions bot removed the conflicts Automatically applied to PRs with merge conflicts label Apr 20, 2023
@github-actions
Copy link
Contributor

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

@Pwuts
Copy link
Member

Pwuts commented Apr 20, 2023

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. :)

@Pwuts Pwuts closed this Apr 20, 2023
@Wladastic
Copy link
Contributor Author

Yup we already talk.
only issue is wrapping autogpt with the bot as I added a possibility to restart autogpt by telegram

@Wladastic
Copy link
Contributor Author

I started making a plugin here:
https://github.com/Wladastic/Auto-GPT-Telegram-Plugin
If anyone likes to assist, I would be glad :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential plugin This may fit better into our plugin system. size/xl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants