Search code examples
c#telegramtelegram-webhook

Telegram API - Channel User Count


I like to know how to use telegram API to query number of users that are in a particular channel. I have checked this but there is no example https://core.telegram.org/api

I am not trying to create a bot, just looking to present stats about a channel.


Solution

  • As @mymedia mentioned, you can use getChatMembersCount method via Bot API.

    You can find full usage in this document, or see following example:

    Awesome Telegram Bot