Answer the question
In order to leave comments, you need to log in
How to execute telegram bot function?
I am making a telegram bot (like a quiz)
pyTelegramBotAPI library
And there is a message parameter
I want to display the function randomly
From, for example, 3 functions: img_1(message), img_2(message), img_3(message)
The message parameter should be, since it is responsible for sending a message
And when the button is clicked, one of the functions should be executed (randomly)
Inside the functions of the image with captions
How to implement it?
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