messages.GetCommonChats
- class pyrogram.raw.functions.messages.GetCommonChats
Get chats in common with a user
- Details:
Layer:
223ID:
E40CA104
- Parameters:
user_id (
InputUser) – User IDmax_id (
int64-bit) – Maximum ID of chat to return (see pagination)limit (
int32-bit) – Maximum number of results to return, see pagination
- Returns:
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 →
intExample
await app.invoke(
GetCommonChats(
user_id=await app.resolve_user(chat_id),
max_id=0,
limit=0,
)
)