Class: Telegram::Bot::Types::PaidMediaPurchased
- Defined in:
- sig/telegram/bot/types/paid_media_purchased.rbs
Instance Attribute Summary collapse
-
#from ⇒ User
readonly
Returns the value of attribute from.
-
#paid_media_payload ⇒ String
readonly
Returns the value of attribute paid_media_payload.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#from ⇒ User (readonly)
Returns the value of attribute from.
8 9 10 |
# File 'sig/telegram/bot/types/paid_media_purchased.rbs', line 8 def from @from end |
#paid_media_payload ⇒ String (readonly)
Returns the value of attribute paid_media_payload.
9 10 11 |
# File 'sig/telegram/bot/types/paid_media_purchased.rbs', line 9 def paid_media_payload @paid_media_payload end |
Class Method Details
.new(from:, paid_media_payload:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/paid_media_purchased.rbs', line 6
def self.new: (from: User, paid_media_payload: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|