S
S
Sheff982021-06-11 15:01:27
Node.js
Sheff98, 2021-06-11 15:01:27

How to read service messages in a telegram group via telebot?

Hello, I want to know how you can read service messages (joined a group).
The bot reads the text of the message and the user ID and is also interested in whether it is possible to get the user ID when you mark his message, for example, in order to display his statistics later.
bot.on('text', async function (msg) {
let dt = new Date
console.log("Time-" + dt.getHours() + ":" + dt.getMinutes() + ":" + dt. getSeconds() + "id" + msg.from.id + "text" + msg.text)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question