InviteToGroupCallRequest
Only users can use this method. See code examples.
---functions--- phone.inviteToGroupCall#7b393160 call:InputGroupCall users:Vector<InputUser> = Updates
Returns
| Updates |
This type can be an instance of either:
| UpdateShort | UpdateShortChatMessage |
| UpdateShortMessage | UpdateShortSentMessage |
| Updates | UpdatesCombined |
| UpdatesTooLong |
Parameters
| call | InputGroupCall | |
| users | InputUser | 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 cause 3 known errors:
GroupcallForbiddenError | . |
UserAlreadyInvitedError | . |
InviteForbiddenWithJoinasError | . |
You can import these from telethon.errors.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.phone.InviteToGroupCallRequest(
call=types.InputGroupCall(
id=-12398745604826,
access_hash=-12398745604826
),
users=['username']
))
print(result.stringify())