V
V
Vlad2021-01-16 14:29:45
Node.js
Vlad, 2021-01-16 14:29:45

How can I find out if a user is a group admin?

I am writing a Telegram bot with node-telegram-bot-api.
6002ce17bac25308813217.jpeg
Such object msg comes. But where is the information about the admin? How to get it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad, 2021-01-16
@vchpro

bot.getChatAdministrators(chatId).then(
  data => {
  	console.log(data);
  });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question