Edit main forum thread name
Edits the name of the main forum thread
Function EditMainForumTopicName(Val Token, Val ChatID, Val Title) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
ChatID | --forum | String, Number | ✔ | Thread chat ID |
Title | --title | String | ✔ | New main thread name |
Returns: Map Of KeyAndValue - serialized JSON response from Telegram
tip
Method at API documentation: editGeneralForumTopic
1C:Enterprise/OneScript code example
Title = "New main thread name " + String(New UUID);
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Result = OPI_Telegram.EditMainForumTopicName(Token, Chat, Title);
- Bash
- CMD/Bat
oint telegram EditMainForumTopicName \
--token "***" \
--forum "-1001971186208" \
--title "New main thread name 4db031bc-2c04-45cc-9592-655ca3d5bf66"
oint telegram EditMainForumTopicName ^
--token "***" ^
--forum "-1001971186208" ^
--title "New main thread name 4db031bc-2c04-45cc-9592-655ca3d5bf66"
Result
{
"ok": true,
"result": true
}