Class: TD::Types::MessageContent::GiftedStars
- Inherits:
-
TD::Types::MessageContent
- Object
- Dry::Struct
- Base
- TD::Types::MessageContent
- TD::Types::MessageContent::GiftedStars
- Defined in:
- lib/tdlib/types/message_content/gifted_stars.rb
Overview
Telegram Stars were gifted to a user.
Instance Attribute Summary collapse
-
#amount ⇒ Integer
The paid amount, in the smallest units of the currency.
-
#cryptocurrency ⇒ TD::Types::String?
Cryptocurrency used to pay for the gift; may be empty if none.
-
#cryptocurrency_amount ⇒ Integer
The paid amount, in the smallest units of the cryptocurrency; 0 if none.
-
#currency ⇒ TD::Types::String
Currency for the paid amount.
-
#gifter_user_id ⇒ Integer
The identifier of a user that gifted Telegram Stars; 0 if the gift was anonymous or is outgoing.
-
#receiver_user_id ⇒ Integer
The identifier of a user that received Telegram Stars; 0 if the gift is incoming.
-
#star_count ⇒ Integer
Number of Telegram Stars that were gifted.
-
#sticker ⇒ TD::Types::Sticker?
A sticker to be shown in the message; may be null if unknown.
-
#transaction_id ⇒ TD::Types::String
Identifier of the transaction for Telegram Stars purchase; for receiver only.
Method Summary
Methods inherited from Base
Instance Attribute Details
#amount ⇒ Integer
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 |
#cryptocurrency ⇒ TD::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_amount ⇒ Integer
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 |
#currency ⇒ TD::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_id ⇒ Integer
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_id ⇒ Integer
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_count ⇒ Integer
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 |
#sticker ⇒ TD::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_id ⇒ TD::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 |