Layer 224
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

Gogram Example

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

Possible Errors

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