ID of the chat to send the message to (null for guest chats, where queryId is used instead)
ID of the user the message should be visible to
Text of the message
Optionalparams: {Optionalanchor?: booleanWhether to anchor this message to the message it replies to
OptionalforbidForwards?: booleanWhether to forbid forwarding this message
OptionalinvertMedia?: booleanWhether to invert the media position.
Currently only supported for web previews and makes the client render the preview above the caption and not below.
Optionalmedia?: InputMediaLikeMedia to be attached to the message
OptionalqueryId?: LongFor guest chat bots, ID of the query that this message is sent in response to
OptionalreplyMarkup?: ReplyMarkupReply markup to be attached to the message
OptionalreplyTo?: numberMessage to reply to
OptionalreplyToEphemeral?: numberEphemeral message to reply to
OptionalrichMessage?: InputRichMessageRich message content to be sent instead of the plain text
OptionalshouldDispatch?: trueWhether to dispatch the returned updates to the client's update handler.
OptionaluploadCache?: RichMediaUploadCacheCache for the uploaded rich message media, see createRichStreamingDraft
Optionalwelcome?: booleanWhether to send this message as a welcome message template for the chat
Send an ephemeral message — a message that is only visible to a single user in a chat and is not persisted in the chat history.