Answer the question
In order to leave comments, you need to log in
How to get information from a user in a telegram bot?
I want to make a mini-base in the bot that the user himself will enter and it will be stored, but I don’t understand how to get information from him so that it fits into the created dictionary.
Consider a simple example where I need to get the city where he lives from the user to show him the weather there
1) bot - Enter the city where you live to get weather data
2) There is a wait until the user answers and write this answer to a variable
3) user - city
4) writing to a variable
I'm interested in the second point and its implementation, maybe a function that makes you wait for an answer
Answer the question
In order to leave comments, you need to log in
Something like this:
https://github.com/python-telegram-bot/python-tele...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question