Ybrin/chatbot_helper-telegram

View on GitHub
lib/chatbot_helper/telegram/venue.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ChatbotHelper
  module Telegram
    # The venue resource which represents a Telegram bot API venue
    class Venue < ChatbotHelper::Telegram::BaseResource
      class << self
        def required_fields
          %w[title address]
        end

        def optional_fields
          %w[foursquare_id]
        end

        def required_objects
          [
            { name: 'location', type: ChatbotHelper::Telegram::Location }
          ]
        end
      end
    end
  end
end