messages.getOnlines #

Get count of online users in a chat

Layer 223

chatOnlines#f041e250 onlines:int = ChatOnlines;
---functions---
messages.getOnlines#6e2be050 peer:InputPeer = ChatOnlines;

Parameters #

NameTypeDescription
peerInputPeerThe chat

Result #

ChatOnlines

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400CHAT_ID_INVALIDThe provided chat id is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.