Sha256: cfdc05f389fd676de5c3f16dea77aa634ec61bb99f5470b39d860fad273fdaf0

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class ChatMemberRestricted < Base
        attribute :status, Types::String.constrained(eql: 'restricted').default('restricted')
        attribute :user, User
        attribute :is_member, Types::Bool
        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
        attribute :until_date, Types::Integer
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telegram-bot-ruby-2.2.0 lib/telegram/bot/types/chat_member_restricted.rb
telegram-bot-ruby-2.1.0 lib/telegram/bot/types/chat_member_restricted.rb
telegram-bot-ruby-2.0.0 lib/telegram/bot/types/chat_member_restricted.rb