Telegram-cli: how to get channel message views

I can receive messages using the history command in telegram-cli. but the response does not contain the number of views of the message channel. so i have to change the code. but I cannot find any method for this in the list of telegram API methods. can someone help me?

+4
source share
1 answer

After listening to the updates, you will also receive messages UpdateShortcontaining the type update property updateChannelMessageViews.

From here you will receive your bill.

updateShort#78d4dec1 update:Update date:int = Updates;

where is the update:

updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update;
-1
source

All Articles