messages.getOnlines

Get count of online users in a chat

 Method schema is available as of layer 91. Switch ยป

Parameters

Name Type Description
peer InputPeer The chat

Result

ChatOnlines

Possible errors

Code Type Description
400 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
400 CHAT_ID_INVALID The provided chat id is invalid.
400 PEER_ID_INVALID The provided peer id is invalid.