Telegram Bot SDK v0.5.1 Release Notes
Release Date: 2016-05-31 // almost 8 years ago-
➕ Added
ReplyKeyboardMarkup
which can be used withStrings
:let markup = ReplyKeyboardMarkup() markup.keyboardStrings = [["/a", "/b"], ["/c", "/d"]] context.respondAsync("Simple keyboard", parameters: ["reply_markup": markup])
Or with
KeyboardButtons
:let button1 = KeyboardButton() button1.text = "Request contact" button1.request_contact = true let button2 = KeyboardButton() button2.text = "Request location" button2.request_location = true markup.keyboardButtons = [ [ button1, button2 ] ] context.respondAsync("Another keyboard", parameters: ["reply_markup": markup])