Sha256: 47e5a0348b8930150ff90bc23a9fb29847edd9b2178814de5d06897fa32d3f84

Contents?: true

Size: 862 Bytes

Versions: 3

Compression:

Stored size: 862 Bytes

Contents

# 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telegram-bot-ruby-2.1.0 lib/telegram/bot/types/chat_permissions.rb
telegram-bot-ruby-2.0.0 lib/telegram/bot/types/chat_permissions.rb
telegram-bot-ruby-1.0.0 lib/telegram/bot/types/chat_permissions.rb