Skip to main content

Edit main forum thread name

Edits the name of the main forum thread

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

ParameterCLI optionTypeDescription
Token--tokenStringToken
ChatID--forumString, NumberThread chat ID
Title--titleStringNew main thread name

Returns: Map Of KeyAndValue - Serialized JSON response from Telegram


Code example
  Title = "New main thread name " + String(New UUID);
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";

Result = OPI_Telegram.EditMainForumTopicName(Token, Chat, Title);
CLI command example
    
oint telegram EditMainForumTopicName --token "6129457865:AAFyzNYOAFbu..." --forum %forum% --title %title%

Result
{
"ok": true,
"result": true
}