Skip to main content

Edit forum topic

Creates a new topic in the group with theme functionality enabled

Function EditForumTopic(Val Token, Val ChatID, Val TopicID, Val Title = Undefined, Val IconID = Undefined) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
ChatID--forumString, NumberTopic creation chat ID
TopicID--topicString, NumberTopic ID
Title--titleStringNew title
IconID--iconStringSee GetAvatarIconList

Returns: Map Of KeyAndValue - serialized JSON response from Telegram


tip

Method at API documentation: editForumTopic


1C:Enterprise/OneScript code example
    Token   = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Topic = "11545";
NewName = "NewTestTitle";
NewIcon = "5310132165583840589";

Result = OPI_Telegram.EditForumTopic(Token, Chat, Topic, NewName, NewIcon);
    oint telegram EditForumTopic \
--token "***" \
--forum "-1001971186208" \
--topic "11655" \
--title "NewTestTitle" \
--icon "5310132165583840589"
Result
{
"ok": true,
"result": true
}