Answer the question
In order to leave comments, you need to log in
Asking for input from user pytelegrambotapi python. How to implement?
In general, there is a code:
def tokenpol(message):
tkn = bot.send_message(message.chat.id, "Введите токен вашего бота:")
bot.register_next_step_handler(tkn, idtgpol)
def idtgpol(message):
idtg = bot.send_message(message.chat.id, "Введите ваш id(ваш id ",'<pre>' +message.chat.id+'</pre>',")", parse_mode="HTML")
bot.register_next_step_handler(idtg, file)
def file(message):
bot.send_message(message.chat.id, "⏳Подождите.... В скором времени бот отправит ваш файл!")
tgsl(tkn, idtg)
tokenpol(message)
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