haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.SetChatMessageAutoDeleteTime

Synopsis

Documentation

data SetChatMessageAutoDeleteTime Source #

Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires change_info administrator right in basic groups, supergroups and channels. Message auto-delete time can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram).. Returns Ok

Constructors

SetChatMessageAutoDeleteTime 

Fields

  • chat_id :: Maybe Int

    Chat identifier

  • message_auto_delete_time :: Maybe Int

    New time value, in seconds; unless the chat is secret, it must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically