Edit forum topic
Creates a new topic in the group with theme functionality enabled
- Parameters
- Advanced call ?
Function EditForumTopic(Val Token, Val ChatID, Val TopicID, Val Title = Undefined, Val IconID = Undefined) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| ChatID | --forum | String, Number | ✔ | Topic creation chat ID |
| TopicID | --topic | String, Number | ✔ | Topic ID |
| Title | --title | String | ✖ | New title |
| IconID | --icon | String | ✖ | See GetAvatarIconList |
Returns
Map Of KeyAndValue - serialized JSON response from Telegram
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Method at API documentation: editForumTopic
1C:Enterprise/OneScript code example
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Topic = "12491";
NewName = "NewTestTitle";
NewIcon = "5310132165583840589";
Result = OPI_Telegram.EditForumTopic(Token, Chat, Topic, NewName, NewIcon);
- Bash
- CMD/Bat
oint telegram EditForumTopic \
--token "***" \
--forum "-1001971186208" \
--topic "14939" \
--title "NewTestTitle" \
--icon "5310132165583840589"
oint telegram EditForumTopic ^
--token "***" ^
--forum "-1001971186208" ^
--topic "14939" ^
--title "NewTestTitle" ^
--icon "5310132165583840589"
Result
{
"ok": true,
"result": true
}