on-internet
← Community

Telegram bot doesn't work anymore. RuntimeWarning: coroutine 'Bot.send_message' was never awaited

Stack Overflow ·

My telegram bot doesn't send messages anymore. I get this error: "RuntimeWarning: coroutine 'Bot.send_message' was never awaited". from telegram import Bot bot_token = 'xxx' chat_id = 'xxx' message = 'TEST' bot = Bot(token=bot_token) bot.send_message(chat_id=chat_id, text=message)

Comments

Sign in or sign up to comment and upvote.

No comments yet.