Answer the question
In order to leave comments, you need to log in
Telegram bot logging, how can I do it?
Hello, I recently switched from bots that subscribe and unsubscribe from people to Telegram bots. The bot has already been made, it can respond to the buttons that are registered in the command. I would like to know who and what commands enters. Searched the Internet, found nothing about this. Can you help how to make a telegram bot log? That is, so that in the input line it is displayed which user and what he entered
Answer the question
In order to leave comments, you need to log in
when your bot triggers an event (someone sent something to the bot), the incoming response contains the identifier of the sender of the message. by this identifier you can get inquire about the account. Unfortunately, it is not clear what you are using (a ready-made framework or http requests, or a webhook), so only a general principle of how to get it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question