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")

Note

In regular groups (non-supergroups), this method will only work if the “All Members Are Admins” setting is off.

Parameters:

title (str) – New chat title, 1-255 characters.

Returns:

bool – True on success.

Raises:
  • RPCError – In case of Telegram RPC error.

  • ValueError – In case a chat_id belongs to user.