Skip to content

v0.2.0-alpha.2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Oct 17:23
· 1 commit to main since this release

A photo, an animation or a document can be sent to one member of a group
and changed in place while only they see it.

Added

  • Ephemeral media. CaptionOptions gained Ephemeral, an Ephemeral
    with the receiver, the button press that authorizes the send and
    ReplaceCallbackQueryMessage, and ReplyToEphemeral, the incoming
    ephemeral message being answered. SendPhoto, SendAnimation,
    SendVideo, SendAudio and SendDocument take them, uploads included. A
    bot that is not an admin of the chat needs the press or the ephemeral
    message, within 15 seconds; an admin needs neither.
  • EditEphemeralMessageMedia, EditEphemeralMessageCaption and
    EditEphemeralMessageReplyMarkup.
    The media edit uploads a new file as
    EditMessageMedia does. Telegram answers these with true, not a message,
    so the file_id of an upload is not reported. "Message is not modified" is
    success, as for the other edits.
  • The three edits are in probeSafe: on an empty body Telegram's server
    asks for the media or the receiver before it does anything, so Preflight
    can require them.