GetExportedChatInvitesRequest
Both users and bots may be able to use this request. See code examples.
---functions--- messages.getExportedChatInvites#a2b5a3f6 flags:# revoked:flags.3?true peer:InputPeer admin_id:InputUser offset_date:flags.2?date offset_link:flags.2?string limit:int = messages.ExportedChatInvites
Returns
| messages.ExportedChatInvites |
This type can only be an instance of:
| ExportedChatInvites |
Parameters
| peer | InputPeer | Anything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.). |
| admin_id | InputUser | Anything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.). |
| limit | int | |
| revoked | flag | This argument defaults to None and can be omitted. |
| offset_date | date | This argument defaults to None and can be omitted. |
| offset_link | string | This 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.GetExportedChatInvitesRequest(
peer='username',
admin_id='username',
limit=100,
revoked=True,
offset_date=datetime.datetime(2018, 6, 25),
offset_link='some string here'
))
print(result.stringify())