get_chat_settings()¶
- Client.get_chat_settings()¶
Get information about a chat settings.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat. Unique identifier for the target chat in form of a t.me/joinchat/ link, identifier (int) or username of the target channel/supergroup (in the format @username).- Returns:
ChatSettings– On success, a chat settings object is returned.- Raises:
ValueError – In case the chat invite link points to a chat you haven’t joined yet.
Example
settings = await app.get_chat_settings("pyrogram") print(settings)