P
P
Python Newbie2021-10-11 20:20:47
Bots
Python Newbie, 2021-10-11 20:20:47

How to get user language in telegram in pytelegrambotapi?

If it is possible then how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
InternetMaster, 2021-10-11
@InternetMaster

Of course you can.
Read the Telegram documentation https://core.telegram.org/bots/api#user
Specifically, you need language_code.
Telegram will return, for example, "ru" for Russian, "en" for English, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question