M
M
Maxim2020-10-12 14:03:47
Bots
Maxim, 2020-10-12 14:03:47

How to get user_id in Telegram bot?

There is a tg bot with sqlite3 database
How to get user_id and create a record with this user_id in the database?
For example, is it possible to get user_id without user registration if the user sent the /start command to the bot?
At the same time create an entry in the database table with its user_id ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-10-12
@wkes

Use search here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question