toggle_community_chat_link()¶
- async Client.toggle_community_chat_link()¶
Link, unlink, hide, or make visible a chat/channel in a community.
Usable by Users Bots- Parameters:
community_id (
int|str) – Target community identifier.chat_id (
int|str) – Target chat/channel to link or modify.visible (
bool, optional) – Whether the link should be visible.hidden (
bool, optional) – Whether the link should be hidden.deleted (
bool, optional) – Whether the link should be deleted (unlinked).
- Returns:
bool– True on success.
Example
# Link chat visibly await app.toggle_community_chat_link(community_id, chat_id, visible=True) # Unlink chat await app.toggle_community_chat_link(community_id, chat_id, deleted=True)