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 d9abd6c9-2c31-4c74-befb-6580d8ef9c30"
Result
{
"ok": true,
"result": true
}