haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.SendGift

Synopsis

Documentation

data SendGift Source #

Sends a gift to another user. May return an error with a message STARGIFT_USAGE_LIMITED if the gift was sold out. Returns Ok

Constructors

SendGift 

Fields

  • gift_id :: Maybe Int

    Identifier of the gift to send

  • user_id :: Maybe Int

    Identifier of the user that will receive 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, and CustomEmoji entities are allowed

  • is_private :: Maybe Bool

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

Instances

Instances details
ToJSON SendGift Source # 
Instance details

Defined in TD.Query.SendGift

Show SendGift Source # 
Instance details

Defined in TD.Query.SendGift

Eq SendGift Source # 
Instance details

Defined in TD.Query.SendGift

ShortShow SendGift Source # 
Instance details

Defined in TD.Query.SendGift