EditExportedInviteRequest
Both users and bots may be able to use this request. See code examples.
---functions--- chatlists.editExportedInvite#653db63d flags:# chatlist:InputChatlist slug:string title:flags.1?string peers:flags.2?Vector<InputPeer> = ExportedChatlistInvite
Returns
| ExportedChatlistInvite |
This type can only be an instance of:
| ExportedChatlistInvite |
Parameters
| chatlist | InputChatlist | |
| slug | string | |
| title | string | This argument defaults to None and can be omitted. |
| peers | InputPeer | This argument defaults to None and can be omitted. Otherwise, Anything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.). a list must be supplied. |
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.chatlists.EditExportedInviteRequest(
chatlist=types.InputChatlistDialogFilter(
filter_id=42
),
slug='some string here',
title='My awesome title',
peers=['username']
))
print(result.stringify())