Class: TD::Types::MessageContent::GiftedStars

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/gifted_stars.rb

Overview

Telegram Stars were gifted to a user.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#amountInteger

The paid amount, in the smallest units of the currency.



15
16
17
# File 'lib/tdlib/types/message_content/gifted_stars.rb', line 15

def amount
  @amount
end

#cryptocurrencyTD::Types::String?

Cryptocurrency used to pay for the gift; may be empty if none.



15
16
17
# File 'lib/tdlib/types/message_content/gifted_stars.rb', line 15

def cryptocurrency
  @cryptocurrency
end

#cryptocurrency_amountInteger

The paid amount, in the smallest units of the cryptocurrency; 0 if none.



15
16
17
# File 'lib/tdlib/types/message_content/gifted_stars.rb', line 15

def cryptocurrency_amount
  @cryptocurrency_amount
end

#currencyTD::Types::String

Currency for the paid amount.



15
16
17
# File 'lib/tdlib/types/message_content/gifted_stars.rb', line 15

def currency
  @currency
end

#gifter_user_idInteger

The identifier of a user that gifted Telegram Stars; 0 if the gift was anonymous or is outgoing.



15
16
17
# File 'lib/tdlib/types/message_content/gifted_stars.rb', line 15

def gifter_user_id
  @gifter_user_id
end

#receiver_user_idInteger

The identifier of a user that received Telegram Stars; 0 if the gift is incoming.



15
16
17
# File 'lib/tdlib/types/message_content/gifted_stars.rb', line 15

def receiver_user_id
  @receiver_user_id
end

#star_countInteger

Number of Telegram Stars that were gifted.



15
16
17
# File 'lib/tdlib/types/message_content/gifted_stars.rb', line 15

def star_count
  @star_count
end

#stickerTD::Types::Sticker?

A sticker to be shown in the message; may be null if unknown.



15
16
17
# File 'lib/tdlib/types/message_content/gifted_stars.rb', line 15

def sticker
  @sticker
end

#transaction_idTD::Types::String

Identifier of the transaction for Telegram Stars purchase; for receiver only.



15
16
17
# File 'lib/tdlib/types/message_content/gifted_stars.rb', line 15

def transaction_id
  @transaction_id
end