messages.getCommonChats #

Get chats in common with a user

Layer 223

messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;
---functions---
messages.getCommonChats#e40ca104 user_id:InputUser max_id:long limit:int = messages.Chats;

Parameters #

NameTypeDescription
user_idInputUserUser ID
max_idlongMaximum ID of chat to return (see pagination)
limitintMaximum number of results to return, see pagination

Result #

messages.Chats

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400MSG_ID_INVALIDInvalid message ID provided.
400USER_ID_INVALIDThe provided user ID is invalid.

Pagination in the API #

How to fetch results from large lists of objects.