How to save the language for a telegram bot?

Deal with bots Telegram.
There was a question about "memorizing" of data that come from the user.
The documentation is not found or anything, but if I'm wrong, please tyknut nose.

So, can someone explain to me how to memorize the commands that the user enters?
For example, the language, the first thing the user sees a menu of choice of language. He presses on EN. How to install Russian forever for this chat? The only thing that comes to mind is to create a DB table with users or chat rooms and setit back information, but then with each command refer to the database, something tells me that it is not good.
In the documentation there is not any methods for saving custom information in server-side telegram.

Please help to deal with this issue.
June 14th 19 at 20:57
1 answer
June 14th 19 at 20:59
You want to change and save the language bot?
I want to give a choice of 3 languages to the user. What would any subsequent appeal has always derived messages only in this language.

But here the question is more like which way is better to save the data. In the database, session, or something else? - Sadye commented on June 14th 19 at 21:02
If Yes, then open the bot if you deleted it then look for it in the telegram on behalf of BotFather, press START and send him a message: "/botlang"
(without the "", but don't forget before the word botlang sign /). - christiana_Casper commented on June 14th 19 at 21:05
Sorry, but I don't know how to do it, I can only put one language for the bot, but a few are not. - christiana_Casper commented on June 14th 19 at 21:08
Now a special invite to the chat - christiana_Casper commented on June 14th 19 at 21:11
And all came! You want each new case one user had the language, which he asked during the first call to the bot! - christiana_Casper commented on June 14th 19 at 21:14
So there is impossible, the bot can't do! - christiana_Casper commented on June 14th 19 at 21:17
While there is no such function - christiana_Casper commented on June 14th 19 at 21:20
Response provided on behalf of the company "Computer help".
www.compyternaya-pomosh.xyz - christiana_Casper commented on June 14th 19 at 21:23
Thank you for your interest.
But I'm afraid You do not understand the essence of the question)
But here the question is more like which way is better to save the data. In the database, session, or something else?

It can be selected as the language during the first call, and any information from the user, which will receive bot. - Sadye commented on June 14th 19 at 21:26
In short, if a user deletes a correspondence with the bot and again approached him, then the correspondence (text, pictures, videos and all-all-ALL) CANNOT be VOSSTANOVITE, which MEANS THAT the BOT does NOT REMEMBER AND did NOT PROVIDE INFORMATION ON CORRESPONDENCE! The data supplied by the user is not saved and you will not go. - christiana_Casper commented on June 14th 19 at 21:29
But here the question is more like which way is better to save the data. In the database, session, or something else?


So if my bot will keep the required information in the database? and if a user deletes the conversation, the bot, then turns back to him, the bot finds the user id in the database and already knows about him (the user) is all that is needed. - Sadye commented on June 14th 19 at 21:32
No. - christiana_Casper commented on June 14th 19 at 21:35
If a user deletes a correspondence no. It does not store data. - christiana_Casper commented on June 14th 19 at 21:38

Find more questions by tags Telegram