Answer the question
In order to leave comments, you need to log in
Telebot,python how to request reusable input from user?
In general, there were difficulties with the assignment of the written text by the user.
The idea is this.
Login
is entered. Password is entered .
login = message.text
password = message.text
def login(message):
msg1 = bot.send_message(message.chat.id,"Введите логин"
login = message.text
bot.register_next_step_handler(msg1, password)
def password(message):
msg2 = bot.send_message(message.chat.id,"Введите пароль"
password = message.text
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