Sha256: 6bfc099328a726cd3b4dbc4f75584a7d08fdc1b7e9a330654b2b4ad96eb3be30
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
module Telegram module Bot module Types class ReplyKeyboardMarkup < Base attribute :keyboard, Array[Array[KeyboardButton]] attribute :resize_keyboard, Boolean, default: false attribute :one_time_keyboard, Boolean, default: false attribute :selective, Boolean, default: false def to_h hsh = super hsh[:keyboard].map! { |a| a.map(&:to_h) } hsh end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
telegram-bot-ruby-0.5.0.beta1 | lib/telegram/bot/types/reply_keyboard_markup.rb |