module Telecr::Markup::InlineButtons

Overview

InlineButtons provides helper methods to generate button hashes. Updated to support custom emoji icons and styles (API 9.6).

Direct including types

Defined in:

markup/inline.cr

Instance Method Summary

Instance Method Detail

def callback(text : String, data : String, style : String | Nil = nil, emoji_id : String | Nil = nil) #

[View source]
def pay(text : String, style : String | Nil = nil, emoji_id : String | Nil = nil) #

[View source]
def switch_inline(text : String, query : String = "", current_chat : Bool = false, style : String | Nil = nil, emoji_id : String | Nil = nil) #

[View source]
def url(text : String, url : String, style : String | Nil = nil, emoji_id : String | Nil = nil) #

[View source]
def web_app(text : String, url : String, style : String | Nil = nil, emoji_id : String | Nil = nil) #

[View source]