atipugin/telegram-bot-ruby

View on GitHub
lib/telegram/bot/types/chat_permissions.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class ChatPermissions < Base
        attribute? :can_send_messages, Types::Bool
        attribute? :can_send_audios, Types::Bool
        attribute? :can_send_documents, Types::Bool
        attribute? :can_send_photos, Types::Bool
        attribute? :can_send_videos, Types::Bool
        attribute? :can_send_video_notes, Types::Bool
        attribute? :can_send_voice_notes, Types::Bool
        attribute? :can_send_polls, Types::Bool
        attribute? :can_send_other_messages, Types::Bool
        attribute? :can_add_web_page_previews, Types::Bool
        attribute? :can_change_info, Types::Bool
        attribute? :can_invite_users, Types::Bool
        attribute? :can_pin_messages, Types::Bool
        attribute? :can_manage_topics, Types::Bool
      end
    end
  end
end