Answer the question
In order to leave comments, you need to log in
How to give information to Telegram bot python?
Telegram bot, tells me to enter your username!
@bot.message_handler(content_types=['text'])
def talking(message):
if message.text == 'reg':
log = bot.send_message(message.chat.id, "Enter your login!")
I do registration using sqlite3, a bot through telebot, how can I now make it so that, for example, I send a message after asking me to enter the login "Login123" and it is entered into the database, how to connect sqlite3 and telebot
Answer the question
In order to leave comments, you need to log in
I don't know but you just need to get what the user wrote and then use sqlite3 although I don't know what it is.
code to get what the user wrote (add this to the code and then work with changing the answer in sqlite3):
def send_text(message):
ответ = message.text.lower()
and then check whether the login is correct in this function.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question