1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-29 02:57:35 +02:00
OpenIntegrations/docs/en/md/Telegram/Forum-topic-management/Edit-forum-topic.md
2024-06-05 10:19:46 +00:00

1.1 KiB

sidebar_position
3

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 Destination
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: Key-Value Pair - Serialized JSON response from Telegram

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

 Result = OPI_Telegram.EditForumTopic(Token, Chat, Topic, NewName, NewIcon);

	
 
 oint telegram EditForumTopic --token "6129457865:AAFyzNYOAFbu..." --forum %forum% --topic %topic% --title %title% --icon %icon%



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