rabilrbl / gemini-pro-bot

A Python Telegram bot powered by Google's gemini-pro LLM API
GNU General Public License v3.0
112 stars 25 forks source link

Bug: Await expression #41

Open rockydares opened 1 month ago

rockydares commented 1 month ago
in send_message_async
    response = await self.model.generate_content(
TypeError: object GenerateContentResponse can't be used in 'await' expression
rabilrbl commented 1 month ago

Are you using await in a synchronous statement?

rockydares commented 1 month ago

Sorry for the late reply. No, I've not changed anything. I just copied this code into my Ubuntu server and set the env then just ran python3 main.py and in the message box of telegram bot, it just shows 'generating' but does not generate anything and thhe cmd shows this error.