You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1365,6 +1372,119 @@ Use the field `can_set_sticker_set` optionally returned in [getChat](https://cor
1365
1372
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername) |
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername) |
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername) |
1403
+
| name | <code>String</code> | Topic name, 1-128 characters |
Use this method to edit name and icon of a topic in a forum supergroup chat.
1410
+
The bot must be an administrator in the chat for this to work and must have can_manage_topics administrator rights, unless it is the creator of the topic.
1411
+
1412
+
**Kind**: instance method of [<code>TelegramBot</code>](#TelegramBot)
1413
+
**Returns**: <code>Promise</code> - True on success
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername) |
1419
+
| messageThreadId | <code>Number</code> | Unique identifier for the target message thread of the forum topic |
1420
+
| name | <code>String</code> | New topic name, 1-128 characters |
1421
+
| iconCustomEmojiId | <code>String</code> | New unique identifier of the custom emoji shown as the topic icon. Use [getForumTopicIconStickers](https://core.telegram.org/bots/api#getforumtopiciconstickers) to get all allowed custom emoji identifiers |
Use this method to close an open topic in a forum supergroup chat.
1428
+
The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic.
1429
+
1430
+
**Kind**: instance method of [<code>TelegramBot</code>](#TelegramBot)
1431
+
**Returns**: <code>Promise</code> - True on success
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername) |
1437
+
| messageThreadId | <code>Number</code> | Unique identifier for the target message thread of the forum topic |
Use this method to reopen a closed topic in a forum supergroup chat.
1444
+
The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic.
1445
+
1446
+
**Kind**: instance method of [<code>TelegramBot</code>](#TelegramBot)
1447
+
**Returns**: <code>Promise</code> - True on success
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername) |
1453
+
| messageThreadId | <code>Number</code> | Unique identifier for the target message thread of the forum topic |
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername) |
1469
+
| messageThreadId | <code>Number</code> | Unique identifier for the target message thread of the forum topic |
| chatId | <code>Number</code> \| <code>String</code> | Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername) |
1485
+
| messageThreadId | <code>Number</code> | Unique identifier for the target message thread of the forum topic |
* Use this method to edit name and icon of a topic in a forum supergroup chat.
1915
+
* The bot must be an administrator in the chat for this to work and must have can_manage_topics administrator rights, unless it is the creator of the topic.
1916
+
*
1917
+
* @param {Number|String} chatId Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername)
1918
+
* @param {Number} messageThreadId Unique identifier for the target message thread of the forum topic
1919
+
* @param {String} name New topic name, 1-128 characters
1920
+
* @param {String} iconCustomEmojiId New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers
* Use this method to close an open topic in a forum supergroup chat.
1935
+
* The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic.
1936
+
*
1937
+
* @param {Number|String} chatId Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername)
1938
+
* @param {Number} messageThreadId Unique identifier for the target message thread of the forum topic
* Use this method to reopen a closed topic in a forum supergroup chat.
1951
+
* The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic.
1952
+
*
1953
+
* @param {Number|String} chatId Unique identifier for the target group or username of the target supergroup (in the format @supergroupusername)
1954
+
* @param {Number} messageThreadId Unique identifier for the target message thread of the forum topic
0 commit comments