messages.GetCommonChats

class pyrogram.raw.functions.messages.GetCommonChats

Get chats in common with a user

Details:
  • Layer: 223

  • ID: E40CA104

Parameters:
  • user_id (InputUser) – User ID

  • max_id (int 64-bit) – Maximum ID of chat to return (see pagination)

  • limit (int 32-bit) – Maximum number of results to return, see pagination

Returns:

messages.Chats

TL Schema

messages.getCommonChats#e40ca104
user_id:InputUser
max_id:long
limit:int

= messages.Chats

Parameter Tree

GetCommonChats
├── user_idInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── max_idlong
└── limitint

Example

await app.invoke(
    GetCommonChats(
        user_id=await app.resolve_user(chat_id),
        max_id=0,
        limit=0,
    )
)