nerzh / swift-telegram-sdk

🤖 The wrapper for the Telegram Bot API written in Swift. It's not a framework. There is no special syntax here. This is a library that implements all Telegram Bot API methods, which is available to you to work with Vapor, Smoke, Hummingbird, FlyingFox.
https://core.telegram.org/bots/api#available-methods
MIT License
203 stars 32 forks source link

Buttons in place of the keyboard #21

Closed freefelt closed 6 months ago

freefelt commented 6 months ago

Hi! Thank you for your work! Please, show me tan example how to make buttons not in chat, but in place of the keyboard. Is there any documentation?

freefelt commented 6 months ago

How to pass callback data to TGKeyboardButton?

freefelt commented 6 months ago

Apologize. It seemed to me that when I tried to make a bot on NodeJS, I could pass callback_data to KeyboardButton. Apparently, the buttons appeared, but I did not check the clicks on them, because then I used InlineKeyboard, and I tried KeyboardButton for the sake of interest.

nerzh commented 6 months ago

Hi, Keyboard buttons have no callback, you need to search by exact match of the button name