build-reply-keyboard

Construct Telegram reply keyboards with a Kotlin DSL.

247|18|Updated May 26, 2022
One-click install
npx skills add https://github.com/vendelieu/telegram-bot --skill build-reply-keyboard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-reply-keyboard
Source: https://github.com/vendelieu/telegram-bot/tree/main/.cursor/skills/bot-user/build-reply-keyboard
Command: npx skills add https://github.com/vendelieu/telegram-bot --skill build-reply-keyboard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of interactive reply keyboards for Telegram bots, allowing developers to easily add custom button layouts for user input.

Core Features & Use Cases

  • Dynamic Keyboard Construction: Programmatically build reply keyboards with text, contact, location, and Web App buttons.
  • Customizable Layouts: Control button arrangement, row breaks, and keyboard options like oneTimeKeyboard and resizeKeyboard.
  • Use Case: A bot needs to present users with a set of predefined options for quick interaction. This Skill allows the bot developer to define these options as buttons that appear below the chat input field, improving user experience and guiding conversations.

Quick Start

Use the build-reply-keyboard skill to create a keyboard with 'Option A' and 'Option B' buttons on the first row, and a 'Share contact' button that requests the user's contact on the second row.

Frequently Asked Questions about build-reply-keyboard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Telegram reply keyboard with custom buttons in Kotlin?

You can build a Telegram reply keyboard using a Kotlin DSL to programmatically construct custom button layouts, arranging text, contact, location, and Web App buttons into rows for user interaction.

Can I create a one-time or resizable reply keyboard for a Telegram bot?

Yes, constructing a reply keyboard for a Telegram bot supports customizable options like `oneTimeKeyboard` and `resizeKeyboard`, allowing you to control how the keyboard displays and behaves during user interaction.

What types of buttons can I add to a Telegram reply keyboard?

Telegram reply keyboards support text buttons for predefined options, contact buttons to request user details, location buttons, and Web App buttons to facilitate diverse user inputs directly below the chat field.

How do I arrange buttons into rows when creating a Telegram reply keyboard?

You arrange buttons by programmatically controlling the layout during keyboard construction, using row breaks within the Kotlin DSL to separate buttons into distinct rows for your Telegram bot interface.

Do I need any external libraries to use a Kotlin DSL for Telegram bot keyboards?

No external dependencies are required to use this Kotlin DSL for constructing Telegram bot reply keyboards, as the Skill operates independently to define button layouts and keyboard options.