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
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
ChatID | --forum | String, Number | ✔ | Thread creation chat ID |
ThreadID | --topic | String, Number | ✔ | Thread ID |
Title | --title | String | ✖ | New title |
IconID | --icon | String | ✖ | See GetAvatarIconList |
Returns: Map Of KeyAndValue - serialized JSON response from Telegram
tip
Method at API documentation: editForumTopic
1C:Enterprise/OneScript code example
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Topic = "6795";
NewName = "NewTestTitle";
NewIcon = "5310132165583840589";
Result = OPI_Telegram.EditForumTopic(Token, Chat, Topic, NewName, NewIcon);
- Bash
- CMD/Bat
oint telegram EditForumTopic \
--token "***" \
--forum "-1001971186208" \
--icon "5310132165583840589" \
--title "NewTestTitle" \
--topic "6839"
oint telegram EditForumTopic ^
--token "***" ^
--forum "-1001971186208" ^
--icon "5310132165583840589" ^
--title "NewTestTitle" ^
--topic "6839"
Result
{
"ok": true,
"result": true
}