1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-07 15:20:39 +02:00
2024-07-10 14:05:58 +03:00

886 B

sidebar_position
6

Delete forum thread

Deletes a forum thread


Function DeleteForumTopic(Val Token, Val ChatID, Val ThreadID) Export

Parameter CLI option Type Destination
Token --token String Token
ChatID --forum String, Number Thread chat ID
ThreadID --topic String, Number Thread ID

Returns: Map Of KeyAndValue - Serialized JSON response from Telegram


 Token = "6129457865:AAFyzNYOAFbu...";
 Chat = "-1001971186208";
 Topic = "2673";
 
 Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
 
 oint telegram DeleteForumTopic --token "6129457865:AAFyzNYOAFbu..." --forum %forum% --topic %topic%

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