InvokeWithBusinessConnectionRequest

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

---functions---
invokeWithBusinessConnection#dd289f8e {X:Type} connection_id:string query:!X = X

Returns

This request returns the result of whatever the result from invoking the request passed through query is.

Parameters

connection_idstring
query!XA different Request must be supplied for this argument.

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.InvokeWithBusinessConnectionRequest(
        connection_id='some string here',
        query=other_request
    ))
    print(result.stringify())