InviteToGroupCallRequest
Only users can use this request. 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 | The group call has already ended. |
InviteForbiddenWithJoinasError | If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID. |
UserAlreadyInvitedError | You have already invited this user. |
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())