'How to use register_next_step_handler on AsyncTeleBot
Heyyy,
I'm just using pyTelegramBotAPI and used the bot.register_next_step_handler
to get a user input as a var and send it to the next function like: getLink = await bot.send_message(cid, 'Which link are you looking for: ') bot.register_next_step_handler(getLink, getWebsite)
. Now I switched to the AsyncTeleBot and when I try to run the script it outputs ERROR:root:'AsyncTeleBot' object has no attribute 'register_next_step_handler'
. Is there a other way to save the user chat input as a var or can I do something other? I don't know what I can do against it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|