Closed Snowstar38 closed 1 year ago
@Snowstar38 I was having the same problem, if you follow the instructions here:
https://github.com/Significant-Gravitas/Auto-GPT-Plugins
and change the first download step to the following it should work:
curl -L -o ./plugins/Auto-GPT-Telegram.zip https://github.com/Wladastic/Auto-GPT-Telegram-Plugin/archive/refs/heads/master.zip
@crushingCodes So opposed to the Readme, we need to use the repo zip, and not just clone directory? Then you need to run autogpt --install-plugin-deps
? Ok then after that, you just run autogpt
And it will keep running in the background, and allow you to talk to it using telegram?
yes
Except now I see that '--install-plugins-deps' was removed in stable.
@ForceConstant i haven't run with that version, but ill let you know if i manage to get it working either way, worst comes to worst you can copy any missing deps into the main requirements.txt, although this is not ideal as a permanent solution
That command just haven’t been added to stable yet, as stable is 2 weeks old. you can try adding the requirements but stable does not work with plugins yet
Stable 0.3.0 just came out with support for plugins. Will see how it goes there.
I was able to get it to work but it won't show me the messages from my terminal. Any suggestions? It will show me just the response prompts .
Hi Wladastic,
Trying your plugin and getting an odd issue. I can curl my bot for messages (API and bot ID is fine), I traced the path to the .env file and that is correct. Getting Waiting for response on Telegram chat... Sending message to Telegram.. Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/bot/Auto-GPT/autogpt/main.py", line 5, in
/home/bot/Auto-GPT/.env:
CHAT_MESSAGES_ENABLED=True
TELEGRAM_ENABLED=True #(from Telegram embedded fork)
TELEGRAM_API_KEY=
Any guidance what am I missing here? (Pulled the latest stable of Auto-GPT and latest of the Telegram plugin)
Cheers, Peter
please uninstall the telegram dependency and use --install-plugin-deps when launching autogpt
I did that and we are missing asyncio in the requirements.txt also now I'm getting
File "/home/bot/Auto-GPT/autogpt_venv/lib/python3.9/site-packages/telegram/_bot.py", line 6983, in get_my_commands result = await self._post( File "/home/bot/Auto-GPT/autogpt_venv/lib/python3.9/site-packages/telegram/_bot.py", line 456, in _post return await self._do_post( File "/home/bot/Auto-GPT/autogpt_venv/lib/python3.9/site-packages/telegram/_bot.py", line 487, in _do_post return await request.post( File "/home/bot/Auto-GPT/autogpt_venv/lib/python3.9/site-packages/telegram/request/_baserequest.py", line 165, in post result = await self._request_wrapper( File "/home/bot/Auto-GPT/autogpt_venv/lib/python3.9/site-packages/telegram/request/_baserequest.py", line 326, in _request_wrapper raise InvalidToken(message) telegram.error.InvalidToken: Not Found
I think its around bot. initialize() where the issue is
Cheers, P
Did you add the api key and chat id?
Yes,
Of course, tested them with curl both ways, tested the path to env is correct, tested are the variables populated around the add_bot and they do pull in as expected.
Cheers, Peter
On Thu, 4 May 2023, 22:05 WladBlank, @.***> wrote:
Did you add the api key and chat id?
— Reply to this email directly, view it on GitHub https://github.com/Wladastic/Auto-GPT-Telegram-Plugin/issues/6#issuecomment-1535410842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJN3AHN5MRZ5H56VY5IWUZTXEQKYXANCNFSM6AAAAAAXPXJG6M . You are receiving this because you commented.Message ID: @.***>
Sorry if this is the wrong place to post this; I don't know a lot about this stuff.
I've got the plugin's .zip in the proper plugins folder. I added the Telegram bot's API key and the Chat ID (which was hard to find for a private chat vs a group, but I found one that works with other curl commands like sendmessage so I assume it's the right one) to the env file as well as the ALLOWLISTED_PLUGINS and CHAT_MESSAGES_ENABLED lines. I've installed all the things in requirements.txt.
So... What do I do now? When I run AutoGPT I do not get any messages through the Telegram bot. What am I doing wrong?