messages.GetCommonChats

class pyrogram.raw.functions.messages.GetCommonChats

Get chats in common with a user

Details:
  • Layer: 227

  • 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_id → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ └── InputUserFromMessage
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
├── max_id → long
└── limit → int

Example

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