toggle_chat_star_gift_notifications()¶
- async Client.toggle_chat_star_gift_notifications()¶
Toggle notifications for incoming star gifts in a channel or chat.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Target chat ID.enabled (
bool, optional) – Whether notifications should be enabled. Defaults to True.
- Returns:
bool– True on success.
Example
await app.toggle_chat_star_gift_notifications(chat_id, True)