Module: GrubY::Bound
- Defined in:
- lib/gruubY/bound.rb
Class Method Summary collapse
Class Method Details
.bind(ctx) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/gruubY/bound.rb', line 5 def bind(ctx) { send: ->(text) { ctx.reply(text) }, raw: ->(method, params = {}) { ctx.raw(method, params) }, inline_keyboard: ->(rows) { GrubY::Keyboard.inline(rows) }, webapp_button: ->(text, url) { GrubY::WebApp.(text: text, url: url) } } end |