Answer the question
In order to leave comments, you need to log in
How to send messages asynchronously?
I would like to understand how it is possible and necessary to send messages asynchronously with the telebot and asyncio libraries. How to add async to this code?
def test(message):
bot.send_chat_action(i, 'upload_photo')
bot.send_photo(i, photo=open('/home/pi/Desktop/bot2.0/photo/11/image.jpg', 'rb'))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question