Class: Telegem::Types::ChatPermissions

Inherits:
BaseType
  • Object
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) ⇒ ChatPermissions

Returns a new instance of ChatPermissions.



581
582
583
584
585
# File 'lib/api/types.rb', line 581

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