messages.EditExportedChatInvite

class pyrogram.raw.functions.messages.EditExportedChatInvite

Edit an exported chat invite

Details:
  • Layer: 223

  • ID: BDCA2F75

Parameters:
  • peer (InputPeer) – Chat

  • link (str) – Invite link

  • revoked (bool, optional) – Whether to revoke the chat invite

  • expire_date (int 32-bit, optional) – New expiration date

  • usage_limit (int 32-bit, optional) – Maximum number of users that can join using this link

  • request_needed (bool, optional) – Whether admin confirmation is required before admitting each separate user into the chat

  • title (str, optional) – Description of the invite link, visible only to administrators

Returns:

messages.ExportedChatInvite

TL Schema

messages.editExportedChatInvite#bdca2f75
flags:#
revoked:flags.2?true
peer:InputPeer
link:string
expire_date:flags.0?int
usage_limit:flags.1?int
request_needed:flags.3?Bool
title:flags.4?string

= messages.ExportedChatInvite

Parameter Tree

EditExportedChatInvite
├── revokedtrue (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
├── linkstring
├── expire_dateint (optional)
├── usage_limitint (optional)
├── request_neededBool (optional)
└── titlestring (optional)

Example

await app.invoke(
    EditExportedChatInvite(
        revoked=None,
        peer=await app.resolve_peer(chat_id),
        link="text",
        expire_date=0,
        usage_limit=0,
        request_needed=None,
        title="text",
    )
)