EditInlineBotMessageWidgetDataRequest
Both users and bots may be able to use this request. See code examples.
---functions--- messages.editInlineBotMessageWidgetData#6396ce2b flags:# id:InputBotInlineMessageID public_data:flags.0?string chat_data:flags.1?string = Bool
Returns
| Bool |
This type has no instances available.
Parameters
| id | InputBotInlineMessageID | |
| public_data | string | This argument defaults to None and can be omitted. |
| chat_data | 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.EditInlineBotMessageWidgetDataRequest(
id=types.InputBotInlineMessageID(
dc_id=42,
id=-12398745604826,
access_hash=-12398745604826
),
public_data='some string here',
chat_data='some string here'
))
print(result)