Class: Telegram::Bot::Types::MessageReactionUpdated

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/message_reaction_updated.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#actor_chatChat? (readonly)

Returns the value of attribute actor_chat.

Returns:



11
12
13
# File 'sig/telegram/bot/types/message_reaction_updated.rbs', line 11

def actor_chat
  @actor_chat
end

#chatChat (readonly)

Returns the value of attribute chat.

Returns:



8
9
10
# File 'sig/telegram/bot/types/message_reaction_updated.rbs', line 8

def chat
  @chat
end

#dateInteger (readonly)

Returns the value of attribute date.

Returns:

  • (Integer)


12
13
14
# File 'sig/telegram/bot/types/message_reaction_updated.rbs', line 12

def date
  @date
end

#message_idInteger (readonly)

Returns the value of attribute message_id.

Returns:

  • (Integer)


9
10
11
# File 'sig/telegram/bot/types/message_reaction_updated.rbs', line 9

def message_id
  @message_id
end

#new_reactionArray[reaction_type] (readonly)

Returns the value of attribute new_reaction.

Returns:

  • (Array[reaction_type])


14
15
16
# File 'sig/telegram/bot/types/message_reaction_updated.rbs', line 14

def new_reaction
  @new_reaction
end

#old_reactionArray[reaction_type] (readonly)

Returns the value of attribute old_reaction.

Returns:

  • (Array[reaction_type])


13
14
15
# File 'sig/telegram/bot/types/message_reaction_updated.rbs', line 13

def old_reaction
  @old_reaction
end

#userUser? (readonly)

Returns the value of attribute user.

Returns:



10
11
12
# File 'sig/telegram/bot/types/message_reaction_updated.rbs', line 10

def user
  @user
end

Class Method Details

.new(chat:, message_id:, user:, actor_chat:, date:, old_reaction:, new_reaction:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(chat:, message_id:, user:, actor_chat:, date:, old_reaction:, new_reaction:) ⇒ instance

    Parameters:

    • chat: (Chat)
    • message_id: (Integer)
    • user: (User)
    • actor_chat: (Chat)
    • date: (Integer)
    • old_reaction: (Array[reaction_type])
    • new_reaction: (Array[reaction_type])

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/message_reaction_updated.rbs', line 6

def self.new: (chat: Chat, message_id: Integer, ?user: User, ?actor_chat: Chat, date: Integer, old_reaction: Array[reaction_type], new_reaction: Array[reaction_type]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance