T
T
Tomatya2020-07-25 17:31:36
Python
Tomatya, 2020-07-25 17:31:36

Python. How to implement input in telebot?

I need to make a simple game - the bot generates a random number from 1 to 5 and the user guesses it. I just don’t know how to implement input in telebot in order to accept the user’s response.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
didrux, 2020-07-25
@Tomatya

@bot.message_handler(content_types="text")

S
soremix, 2020-07-25
@SoreMix

Process all messages from the user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question