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

TD.Query.SendResoldGift

Synopsis

Documentation

data SendResoldGift Source #

Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method. Returns GiftResaleResult

Constructors

SendResoldGift 

Fields

  • gift_name :: Maybe Text

    Name of the upgraded gift to send

  • owner_id :: Maybe MessageSender

    Identifier of the user or the channel chat that will receive the gift

  • price :: Maybe GiftResalePrice

    The price that the user agreed to pay for the gift

  • text :: Maybe FormattedText

    Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. Must be empty if the receiver enabled paid messages and the price of the gift is less than the price of a paid message to the user

  • is_private :: Maybe Bool

    Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them