messages.HideChatJoinRequest

class pyrogram.raw.functions.messages.HideChatJoinRequest

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

Details:
  • Layer: 223

  • 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
├── approvedtrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── user_idInputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

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