EditExportedChatInviteRequest

Both users and bots may be able to use this request. See code examples.

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

Returns

messages.ExportedChatInvite

This type can be an instance of either:

ExportedChatInviteExportedChatInviteReplaced

Parameters

peerInputPeerAnything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.).
linkstring
revokedflagThis argument defaults to None and can be omitted.
expire_datedateThis argument defaults to None and can be omitted.
usage_limitintThis argument defaults to None and can be omitted.
request_neededBoolThis argument defaults to None and can be omitted.
titlestringThis argument defaults to None and can be omitted.

Known RPC errors

This request can't cause any RPC error as far as we know.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.messages.EditExportedChatInviteRequest(
        peer='username',
        link='some string here',
        revoked=True,
        expire_date=datetime.datetime(2018, 6, 25),
        usage_limit=42,
        request_needed=False,
        title='My awesome title'
    ))
    print(result.stringify())