Open Mozilla88 opened 1 month ago
Did you install the correct python library for telegram? Do not install telegram but the one in requirements.txt
Did you install the correct python library for telegram? Do not install telegram but the one in requirements.txt
Yes, I installed the newest version of python-telegram-bot. python-telegram-bot 21.6
But in class TelegramUtils there has no set_commands() method, so I think this code is wrong.
await self.set_commands(bot)
Interesting, maybe they removed it in the latest version, I just tried it and havent had an issue. Let me check the correct version and add that into requirements.txt
simple_telegram.py in this method:
But set_commands() method doesn't exist in class TelegramUtils. so an error will occurr: