SetBotGuestChatResultRequest

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

---functions---
messages.setBotGuestChatResult#b8f106e3 query_id:long result:InputBotInlineResult = InputBotInlineMessageID

Returns

InputBotInlineMessageID

This type can be an instance of either:

InputBotInlineMessageIDInputBotInlineMessageID64

Parameters

query_idlong
resultInputBotInlineResult

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.SetBotGuestChatResultRequest(
        query_id=-12398745604826,
        result=types.InputBotInlineResult(
            id='some string here',
            type='some string here',
            send_message=types.InputBotInlineMessageMediaAuto(
                message='Hello there!',
                invert_media=True
            ),
            title='My awesome title',
            description='some string here',
            url='some string here',
            thumb=types.InputWebDocument(
                url='some string here',
                size=42,
                mime_type='some string here',
                attributes=[types.DocumentAttributeImageSize(
                    w=42,
                    h=42
                )]
            ),
            content=types.InputWebDocument(
                url='some string here',
                size=42,
                mime_type='some string here',
                attributes=[types.DocumentAttributeImageSize(
                    w=42,
                    h=42
                )]
            )
        )
    ))
    print(result.stringify())