Skip to main content

Edit forum thread

Creates a new thread in the group with theme functionality enabled

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

ParameterCLI optionTypeDescription
Token--tokenStringToken
ChatID--forumString, NumberThread creation chat ID
ThreadID--topicString, NumberThread ID
Title--titleStringNew title
IconID--iconStringSee GetAvatarIconList

Returns: Map Of KeyAndValue - Serialized JSON response from Telegram


Code example
    Token   = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Topic = "4391";
NewName = "NewTestTitle";
NewIcon = "5310132165583840589";

Result = OPI_Telegram.EditForumTopic(Token, Chat, Topic, NewName, NewIcon);
CLI command example
    
oint telegram EditForumTopic --token "6129457865:AAFyzNYOAFbu..." --forum %forum% --topic %topic% --title %title% --icon %icon%

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