Skip to main content

Edit main forum topic name

Edits the name of the main forum topic

Function EditMainForumTopicName(Val Token, Val ChatID, Val Title) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
ChatID--forumString, NumberTopic chat ID
Title--titleStringNew main topic name

Returns: Map Of KeyAndValue - serialized JSON response from Telegram


tip

Method at API documentation: editGeneralForumTopic


1C:Enterprise/OneScript code example
    Title = "New main topic name " + String(New UUID);
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";

Result = OPI_Telegram.EditMainForumTopicName(Token, Chat, Title);
    oint telegram EditMainForumTopicName \
--token "***" \
--forum "-1001971186208" \
--title "New main topic name d179ca83-a70a-4551-b5ac-06a5702e0886"
Result
{
"ok": true,
"result": true
}