messages.DeleteRevokedExportedChatInvites

class pyrogram.raw.functions.messages.DeleteRevokedExportedChatInvites

Delete all revoked chat invites

Details:
  • Layer: 223

  • ID: 56987BD5

Parameters:
  • peer (InputPeer) – Chat

  • admin_id (InputUser) – ID of the admin that originally generated the revoked chat invites

Returns:

bool

TL Schema

messages.deleteRevokedExportedChatInvites#56987bd5
peer:InputPeer
admin_id:InputUser

= Bool

Parameter Tree

DeleteRevokedExportedChatInvites
├── 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
└── admin_idInputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

await app.invoke(
    DeleteRevokedExportedChatInvites(
        peer=await app.resolve_peer(chat_id),
        admin_id=await app.resolve_user(chat_id),
    )
)