Open t0ssox opened 3 years ago
Hello!
The issue is that the bot sends a message to the admin group specified in bot/static.py
file when someone sends an audio message to it. You should change the id of the chat there.
Look here: https://github.com/artembakhanov/bruh-bot/blob/master/bot/static.py
P.S. You should add the bot to the group chat or start it from the telegram account you specified.
Thank you. Now after changing group ID bot is saving recorded voice messages to that group. Unfortunately when I'm trying to trigger 'bruh🔊' it works on first time, sending(forwarding) saved audio file from admin group, but after triggering 'bruh🔊' second time bot crashes with this:
(__init__.py:515 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: wrong file identifier/HTTP URL specified"
On bot restart, he somehow know saved voice messages in admin group (I can remove them) but crashes on first 'bruh🔊' trigger. I need to record again to get this trigger once work. Recording multiple voice messages not help.
Most probably you should connect to db. I am not sure since I cannot reproduce the error
I'm trying to run that bot on my RPI4 with Arch Linux ARM. I satisfied all dependencies I think. After starting everything seems to work (bot answers me on telegram), but when I'm sending a voice message to record sound I'm getting that output and bot stops. This happens too when trying to use 'bruh🔊'.
(__init__.py:515 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: chat not found"
What I tried? Changed pyTelegramBotAPI version to latest (3.7.6) but not works. I'm using python 3.9.2 so this may be issue I think.