Chat.set_title()¶
- Chat.set_title()¶
Bound method set_title of
Chat.Use as a shortcut for:
await client.set_chat_title( chat_id=chat_id, title=title )
Example
await chat.set_title("Lounge")- Parameters:
title (
str) – New chat title, 1-255 characters.- Returns:
Message– On success, the sent service message is returned.- Raises:
RPCError – In case of Telegram RPC error.
ValueError – In case a chat_id belongs to user.