messages.HideChatJoinRequest

class pyrogram.raw.functions.messages.HideChatJoinRequest

Dismiss or approve a chat join request related to a specific chat or channel.

Details:
  • Layer: 227

  • ID: 7FE7E815

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

  • user_id (InputUser) – The user whose join request » should be dismissed or approved

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

Returns:

Updates

TL Schema

messages.hideChatJoinRequest#7fe7e815
flags:#
approved:flags.0?true
peer:InputPeer
user_id:InputUser

= Updates

Parameter Tree

HideChatJoinRequest
├── 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
└── user_id → InputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_id → long
│ └── access_hash → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── user_id → long

Example

await app.invoke(
    HideChatJoinRequest(
        approved=None,
        peer=await app.resolve_peer(chat_id),
        user_id=await app.resolve_user(chat_id),
    )
)