set_personal_chat()¶
- Client.set_personal_chat()¶
Changes the personal chat of the current user.
Usable by Users Bots
- Parameters:¶
chat_id (``int`` | ``str``, *optional*) – Identifier of the new personal chat; pass None to remove the chat. Use
get_created_chats()withis_suitable_for_my_personal_chatto get suitable chats- Returns:¶
``bool`` (True on success.)
Example
# Update your personal chat await app.set_personal_chat(chat_id="@Pyrogram") # Hide your personal chat await app.set_personal_chat()