Class: ChatbotHelper::Telegram::Chat

Inherits:
BaseResource show all
Defined in:
lib/chatbot_helper/telegram/chat.rb

Overview

The chat resource which represents a Telegram bot API chat

Instance Attribute Summary

Attributes inherited from BaseResource

#hash

Class Method Summary collapse

Methods inherited from BaseResource

#==, #initialize, optional_arrays, optional_objects, required_arrays, required_objects, #to_s, valid_resource!, valid_resource?

Constructor Details

This class inherits a constructor from ChatbotHelper::Telegram::BaseResource

Class Method Details

.optional_fieldsObject



10
11
12
# File 'lib/chatbot_helper/telegram/chat.rb', line 10

def optional_fields
  %w[title username first_name last_name all_members_are_administrators]
end

.required_fieldsObject



6
7
8
# File 'lib/chatbot_helper/telegram/chat.rb', line 6

def required_fields
  %w[id type]
end