Layer 220
method Users
messages.getCommonChats#e40ca104 user_id:InputUser max_id:long limit:int = messages.Chats;

Parameters

Name Type Description
UserId InputUser User ID
MaxId long Maximum ID of chat to return (see pagination )
Limit int Maximum number of results to return, see pagination

Returns

messages.Chats

Possible Errors

Code Type Description
400 MSG_ID_INVALID Invalid message ID provided.
400 USER_ID_INVALID The provided user ID is invalid.

Gogram Example

// MessagesGetCommonChats - positional arguments
result, err := client.MessagesGetCommonChats(&tg.InputUserSelf{}, int64(0), 0)
if err != nil {
    // handle error
}
// result is *tg.MessagesChats