UpdateToneRequest
Both users and bots may be able to use this request. See code examples.
---functions--- aicompose.updateTone#903bcf59 flags:# tone:InputAiComposeTone display_author:flags.0?Bool emoji_id:flags.1?long title:flags.2?string prompt:flags.3?string = AiComposeTone
Returns
| AiComposeTone |
This type can be an instance of either:
| AiComposeTone | AiComposeToneDefault |
Parameters
| tone | InputAiComposeTone | |
| display_author | Bool | This argument defaults to None and can be omitted. |
| emoji_id | long | This argument defaults to None and can be omitted. |
| title | string | This argument defaults to None and can be omitted. |
| prompt | 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.aicompose.UpdateToneRequest(
tone=types.InputAiComposeToneDefault(
tone='some string here'
),
display_author=False,
emoji_id=-12398745604826,
title='My awesome title',
prompt='some string here'
))
print(result.stringify())