edit_forum_topic()#
- Client.edit_forum_topic()#
Edit a forum topic.
Usable by Users Bots- Parameters:
chat_id (
int
|str
) – Unique identifier (int) or username (str) of the target chat.topic_id (
int
) – Unique identifier (int) of the target forum topic.title (
str
, optional) – The forum topic title.icon_emoji_id (
int
, optional) – Unique identifier of the custom emoji shown as the topic icon.closed (
bool
, optional) – Close forum topic.hidden (
bool
, optional) – Hide forum topic.
- Returns:
bool – On success, a Boolean is returned.
Example
await app.edit_forum_topic(chat_id,topic_id,"New Topic Title")