Link Search Menu Expand Document

Method: channels.editForumTopic

Back to methods index

Edit forum topic; requires manage_topics rights.


channelUsername, chat ID, Update, Message or InputChannelSupergroupOptional
topic_idintTopic IDOptional
titlestringIf present, will update the topic title (maximum UTF-8 length: 128).Optional
icon_emoji_idlongIf present, updates the custom emoji used as topic icon. Telegram Premium users can use any custom emoji, other users can only use the custom emojis contained in the inputStickerSetEmojiDefaultTopicIcons emoji pack. Pass 0 to switch to the fallback topic icon.Optional
closedBoolIf present, will update the open/closed status of the topic.Optional
hiddenBoolIf present, will hide/unhide the topic (only valid for the “General” topic, id=1).Optional

Return type: Updates

Can bots use this method: YES

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$Updates = $MadelineProto->channels->editForumTopic(channel: $InputChannel, topic_id: $int, title: 'string', icon_emoji_id: $long, closed: $Bool, hidden: $Bool, );