Ybrin/chatbot_helper-telegram

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

Summary

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

        def required_arrays
          [
            { name: 'photos',
              type: ChatbotHelper::Telegram::PhotoSizeCollection }
          ]
        end
      end
    end
  end
end