The check does not work due to the fact that the bot is constantly inside the function
I am writing a telegram bot, and it needs to send a message to the user at 9.00 Am. But since the bot constantly communicates with users inside the function, a time check outside the function is not performed. I’m a beginner and I don’t quite understand how to arrange the check so that the bot sends messages to users regardless of what it is doing right now
def callback_handler return bot’s username
I was trying to add user’s name to a python list from function callback_handler()
when an inline button is pressed. But when i try to get user’s name from call.message.from_user.username
it just gives me bot’s username.
impor telebot, @bot.poll_answer_handler() doesn’t work
poll answer does not work, that is, it is not even called, @bot.poll_answer_handler() , I think I tried everything, everything I was looking for is not there, it seems to me that this is some kind of bug already in my system, here is the code
`import telebot