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 aa63c390-c5f9-4a5b-a0b4-30d0becf5040"
Result
{
"ok": true,
"result": true
}