messages.HideAllChatJoinRequests

class pyrogram.raw.functions.messages.HideAllChatJoinRequests

Dismiss or approve all join requests related to a specific chat or channel.

Details:
  • Layer: 227

  • ID: E085F4EA

Parameters:
  • peer (InputPeer) – The chat or channel

  • approved (bool, optional) – Whether to dismiss or approve all chat join requests »

  • link (str, optional) – Only dismiss or approve join requests » initiated using this invite link

Returns:

Updates

TL Schema

messages.hideAllChatJoinRequests#e085f4ea
flags:#
approved:flags.0?true
peer:InputPeer
link:flags.1?string

= Updates

Parameter Tree

HideAllChatJoinRequests
├── approved → true (optional)
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── link → string (optional)

Example

await app.invoke(
    HideAllChatJoinRequests(
        approved=None,
        peer=await app.resolve_peer(chat_id),
        link="text",
    )
)