editGeneralForumTopic
Returns boolean ↗
Use this method to edit the name of the ‘General’ topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights.
Required: chat_id, name
Limits:
- name: 1-128 characters
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("edit_general_forum_topic", { chat_id: "YOUR_CHAT_ID", name: "..."})Parameters
chat_id number | string Required
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).
name string Required
New topic name, 1-128 characters.
Related methods
editChatInviteLink · editChatSubscriptionInviteLink · editForumTopic · editMessageCaption · editMessageChecklist · editMessageLiveLocation · editMessageMedia · editMessageReplyMarkup · editMessageText · editStory · editUserStarSubscription