Skip to content

addChatWelcomeMessage

Function · TDLib 1.8.67 · d1085f9c

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

addChatWelcomeMessage(
  chat_id: int53,
  input_message_content: InputMessageContent
) → Ok

chat_id

int53

The identifier of the chat

input_message_content

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