I want to create a bot with calculator in Telegram, but i don't know how i can save the input from user message to save in a variable.
My idea is the user send two numbers, and the bot sum both numbers and send in a message the result to the user.
I want to create a bot with calculator in Telegram, but i don't know how i can save the input from user message to save in a variable.
My idea is the user send two numbers, and the bot sum both numbers and send in a message the result to the user.
Copyright © 2021 Jogjafile Inc.
You can use
register_next_step_handler
.example 1:
https://github.com/eternnoir/pyTelegramBotAPI/blob/master/examples/step_example.py
example 2: