X
X
Xand0r2021-07-27 21:34:14
Python
Xand0r, 2021-07-27 21:34:14

How to make the telegram bot ask for the language the first time you start the bot?

I need the first time the bot starts up, the bot asks what language it wants to install? how to do this, do you need a database for this or not?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
BasiC2k, 2021-07-27
@Xand0r

When a user sends any message to the bot (including the first start - the start command), the json message descriptor contains a label - in which language the message was sent. You can write this label to the database along with the user's chat_id and you will always know in what language to answer him.

A
Andrey, 2021-07-27
@anerev

need

U
UberPool, 2021-07-28
@UberPool

When a user writes to your bot, check if it is in the database.
If it is already in the database, do not ask for the language.
If it is not in the database, ask for the language, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question