atipugin/telegram-bot-ruby

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

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class KeyboardButton < Base
        attribute :text, Types::String
        attribute? :request_users, KeyboardButtonRequestUsers
        attribute? :request_chat, KeyboardButtonRequestChat
        attribute? :request_contact, Types::Bool
        attribute? :request_location, Types::Bool
        attribute? :request_poll, KeyboardButtonPollType
        attribute? :web_app, WebAppInfo
      end
    end
  end
end