Class: Telegem::Types::ChatMemberRestricted

Inherits:
ChatMember show all
Defined in:
lib/api/types.rb

Instance Attribute Summary

Attributes inherited from BaseType

#_raw_data

Instance Method Summary collapse

Methods inherited from BaseType

#inspect, #method_missing, #respond_to_missing?, #to_h, #to_s

Constructor Details

#initialize(data) ⇒ ChatMemberRestricted

Returns a new instance of ChatMemberRestricted.



596
597
598
599
600
# File 'lib/api/types.rb', line 596

def initialize(data)
  super(data)
  # Bot API 10.0 - reaction support
  define_accessor(:can_react_to_messages)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Telegem::Types::BaseType