module Telecr::Markup::InlineButtons

Overview

===== Inline Keyboard Helpers =====

Direct including types

Defined in:

markup/inline.cr

Instance Method Summary

Instance Method Detail

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

Create a callback button


[View source]
def callback_game(text, game_short_name, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) #

Create game button


[View source]
def login(text, url, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil, **options) #

Create login button


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

Create pay button


[View source]
def switch_inline(text, query : String | Nil = nil, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) #

Create switch inline button


[View source]
def switch_inline_current_chat(text, query : String | Nil = nil, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) #

Create switch inline current chat button


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

Create a URL button


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

Create web app button


[View source]