Class: Telegram::Bot::Types::Update
- Defined in:
- sig/telegram/bot/types/update.rbs
Instance Attribute Summary collapse
-
#business_connection ⇒ BusinessConnection?
readonly
Returns the value of attribute business_connection.
-
#business_message ⇒ Message?
readonly
Returns the value of attribute business_message.
-
#callback_query ⇒ CallbackQuery?
readonly
Returns the value of attribute callback_query.
-
#channel_post ⇒ Message?
readonly
Returns the value of attribute channel_post.
-
#chat_boost ⇒ ChatBoostUpdated?
readonly
Returns the value of attribute chat_boost.
-
#chat_join_request ⇒ ChatJoinRequest?
readonly
Returns the value of attribute chat_join_request.
-
#chat_member ⇒ ChatMemberUpdated?
readonly
Returns the value of attribute chat_member.
-
#chosen_inline_result ⇒ ChosenInlineResult?
readonly
Returns the value of attribute chosen_inline_result.
-
#deleted_business_messages ⇒ BusinessMessagesDeleted?
readonly
Returns the value of attribute deleted_business_messages.
-
#edited_business_message ⇒ Message?
readonly
Returns the value of attribute edited_business_message.
-
#edited_channel_post ⇒ Message?
readonly
Returns the value of attribute edited_channel_post.
-
#edited_message ⇒ Message?
readonly
Returns the value of attribute edited_message.
-
#inline_query ⇒ InlineQuery?
readonly
Returns the value of attribute inline_query.
-
#managed_bot ⇒ ManagedBotUpdated?
readonly
Returns the value of attribute managed_bot.
-
#message ⇒ Message?
readonly
Returns the value of attribute message.
-
#message_reaction ⇒ MessageReactionUpdated?
readonly
Returns the value of attribute message_reaction.
-
#message_reaction_count ⇒ MessageReactionCountUpdated?
readonly
Returns the value of attribute message_reaction_count.
-
#my_chat_member ⇒ ChatMemberUpdated?
readonly
Returns the value of attribute my_chat_member.
-
#poll ⇒ Poll?
readonly
Returns the value of attribute poll.
-
#poll_answer ⇒ PollAnswer?
readonly
Returns the value of attribute poll_answer.
-
#pre_checkout_query ⇒ PreCheckoutQuery?
readonly
Returns the value of attribute pre_checkout_query.
-
#purchased_paid_media ⇒ PaidMediaPurchased?
readonly
Returns the value of attribute purchased_paid_media.
-
#removed_chat_boost ⇒ ChatBoostRemoved?
readonly
Returns the value of attribute removed_chat_boost.
-
#shipping_query ⇒ ShippingQuery?
readonly
Returns the value of attribute shipping_query.
-
#update_id ⇒ Integer
readonly
Returns the value of attribute update_id.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#business_connection ⇒ BusinessConnection? (readonly)
Returns the value of attribute business_connection.
13 14 15 |
# File 'sig/telegram/bot/types/update.rbs', line 13 def business_connection @business_connection end |
#business_message ⇒ Message? (readonly)
Returns the value of attribute business_message.
14 15 16 |
# File 'sig/telegram/bot/types/update.rbs', line 14 def @business_message end |
#callback_query ⇒ CallbackQuery? (readonly)
Returns the value of attribute callback_query.
21 22 23 |
# File 'sig/telegram/bot/types/update.rbs', line 21 def callback_query @callback_query end |
#channel_post ⇒ Message? (readonly)
Returns the value of attribute channel_post.
11 12 13 |
# File 'sig/telegram/bot/types/update.rbs', line 11 def channel_post @channel_post end |
#chat_boost ⇒ ChatBoostUpdated? (readonly)
Returns the value of attribute chat_boost.
30 31 32 |
# File 'sig/telegram/bot/types/update.rbs', line 30 def chat_boost @chat_boost end |
#chat_join_request ⇒ ChatJoinRequest? (readonly)
Returns the value of attribute chat_join_request.
29 30 31 |
# File 'sig/telegram/bot/types/update.rbs', line 29 def chat_join_request @chat_join_request end |
#chat_member ⇒ ChatMemberUpdated? (readonly)
Returns the value of attribute chat_member.
28 29 30 |
# File 'sig/telegram/bot/types/update.rbs', line 28 def chat_member @chat_member end |
#chosen_inline_result ⇒ ChosenInlineResult? (readonly)
Returns the value of attribute chosen_inline_result.
20 21 22 |
# File 'sig/telegram/bot/types/update.rbs', line 20 def chosen_inline_result @chosen_inline_result end |
#deleted_business_messages ⇒ BusinessMessagesDeleted? (readonly)
Returns the value of attribute deleted_business_messages.
16 17 18 |
# File 'sig/telegram/bot/types/update.rbs', line 16 def @deleted_business_messages end |
#edited_business_message ⇒ Message? (readonly)
Returns the value of attribute edited_business_message.
15 16 17 |
# File 'sig/telegram/bot/types/update.rbs', line 15 def @edited_business_message end |
#edited_channel_post ⇒ Message? (readonly)
Returns the value of attribute edited_channel_post.
12 13 14 |
# File 'sig/telegram/bot/types/update.rbs', line 12 def edited_channel_post @edited_channel_post end |
#edited_message ⇒ Message? (readonly)
Returns the value of attribute edited_message.
10 11 12 |
# File 'sig/telegram/bot/types/update.rbs', line 10 def @edited_message end |
#inline_query ⇒ InlineQuery? (readonly)
Returns the value of attribute inline_query.
19 20 21 |
# File 'sig/telegram/bot/types/update.rbs', line 19 def inline_query @inline_query end |
#managed_bot ⇒ ManagedBotUpdated? (readonly)
Returns the value of attribute managed_bot.
32 33 34 |
# File 'sig/telegram/bot/types/update.rbs', line 32 def managed_bot @managed_bot end |
#message ⇒ Message? (readonly)
Returns the value of attribute message.
9 10 11 |
# File 'sig/telegram/bot/types/update.rbs', line 9 def @message end |
#message_reaction ⇒ MessageReactionUpdated? (readonly)
Returns the value of attribute message_reaction.
17 18 19 |
# File 'sig/telegram/bot/types/update.rbs', line 17 def @message_reaction end |
#message_reaction_count ⇒ MessageReactionCountUpdated? (readonly)
Returns the value of attribute message_reaction_count.
18 19 20 |
# File 'sig/telegram/bot/types/update.rbs', line 18 def @message_reaction_count end |
#my_chat_member ⇒ ChatMemberUpdated? (readonly)
Returns the value of attribute my_chat_member.
27 28 29 |
# File 'sig/telegram/bot/types/update.rbs', line 27 def my_chat_member @my_chat_member end |
#poll ⇒ Poll? (readonly)
Returns the value of attribute poll.
25 26 27 |
# File 'sig/telegram/bot/types/update.rbs', line 25 def poll @poll end |
#poll_answer ⇒ PollAnswer? (readonly)
Returns the value of attribute poll_answer.
26 27 28 |
# File 'sig/telegram/bot/types/update.rbs', line 26 def poll_answer @poll_answer end |
#pre_checkout_query ⇒ PreCheckoutQuery? (readonly)
Returns the value of attribute pre_checkout_query.
23 24 25 |
# File 'sig/telegram/bot/types/update.rbs', line 23 def pre_checkout_query @pre_checkout_query end |
#purchased_paid_media ⇒ PaidMediaPurchased? (readonly)
Returns the value of attribute purchased_paid_media.
24 25 26 |
# File 'sig/telegram/bot/types/update.rbs', line 24 def purchased_paid_media @purchased_paid_media end |
#removed_chat_boost ⇒ ChatBoostRemoved? (readonly)
Returns the value of attribute removed_chat_boost.
31 32 33 |
# File 'sig/telegram/bot/types/update.rbs', line 31 def removed_chat_boost @removed_chat_boost end |
#shipping_query ⇒ ShippingQuery? (readonly)
Returns the value of attribute shipping_query.
22 23 24 |
# File 'sig/telegram/bot/types/update.rbs', line 22 def shipping_query @shipping_query end |
#update_id ⇒ Integer (readonly)
Returns the value of attribute update_id.
8 9 10 |
# File 'sig/telegram/bot/types/update.rbs', line 8 def update_id @update_id end |
Class Method Details
.new(update_id:, message:, edited_message:, channel_post:, edited_channel_post:, business_connection:, business_message:, edited_business_message:, deleted_business_messages:, message_reaction:, message_reaction_count:, inline_query:, chosen_inline_result:, callback_query:, shipping_query:, pre_checkout_query:, purchased_paid_media:, poll:, poll_answer:, my_chat_member:, chat_member:, chat_join_request:, chat_boost:, removed_chat_boost:, managed_bot:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/update.rbs', line 6
def self.new: (update_id: Integer, ?message: Message, ?edited_message: Message, ?channel_post: Message, ?edited_channel_post: Message, ?business_connection: BusinessConnection, ?business_message: Message, ?edited_business_message: Message, ?deleted_business_messages: BusinessMessagesDeleted, ?message_reaction: MessageReactionUpdated, ?message_reaction_count: MessageReactionCountUpdated, ?inline_query: InlineQuery, ?chosen_inline_result: ChosenInlineResult, ?callback_query: CallbackQuery, ?shipping_query: ShippingQuery, ?pre_checkout_query: PreCheckoutQuery, ?purchased_paid_media: PaidMediaPurchased, ?poll: Poll, ?poll_answer: PollAnswer, ?my_chat_member: ChatMemberUpdated, ?chat_member: ChatMemberUpdated, ?chat_join_request: ChatJoinRequest, ?chat_boost: ChatBoostUpdated, ?removed_chat_boost: ChatBoostRemoved, ?managed_bot: ManagedBotUpdated) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
Instance Method Details
#current_message ⇒ Base?
33 |
# File 'sig/telegram/bot/types/update.rbs', line 33
def current_message: () -> Base?
|