1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-31 23:20:02 +02:00
OpenIntegrations/docs/en/md/Telegram/Forum-topic-management/Clear-thread-pinned-messages-list.md
2024-08-14 09:06:31 +03:00

1.1 KiB

sidebar_position
sidebar_position
10

Clear thread's pinned messages list

Clears the list of pinned messages in the forum thread

Function ClearThreadPinnedMessagesList(Val Token, Val ChatID, Val ThreadID = "") Export

Parameter CLI option Type Description
Token --token String Token
ChatID --forum String, Number Thread chat ID
ThreadID --topic String, Number Thread ID. Main if not filled

Returns: Map Of KeyAndValue - Serialized JSON response from Telegram


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

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