haskell-tdlib-2.1.24.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.AddChatWelcomeMessage

Synopsis

Documentation

data AddChatWelcomeMessage Source #

Adds a message to the list of welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. There can be up to getOption("welcome_message_count_max") welcome messages in a chat. Returns Ok

Constructors

AddChatWelcomeMessage 

Fields

  • chat_id :: Maybe Int

    The identifier of the chat

  • input_message_content :: Maybe InputMessageContent

    The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, inputMessageLocation, inputMessageVenue, inputMessageContact