messages.EditExportedChatInvite

class pyrogram.raw.functions.messages.EditExportedChatInvite

Edit an exported chat invite

Details:
  • Layer: 227

  • 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
├── revoked → 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
├── expire_date → int (optional)
├── usage_limit → int (optional)
├── request_needed → Bool (optional)
└── title → string (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",
    )
)