add-telegram-api-action

Generate Kotlin action and options classes for new Telegram Bot API methods.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new methods and functionalities to the Telegram Bot library, ensuring consistency and adherence to the Telegram API specifications.

Core Features & Use Cases

  • New API Endpoint Support: Implement support for any new or existing Telegram Bot API method.
  • Code Generation Assistance: Automates the creation of action classes, options classes, and top-level functions.
  • Use Case: When Telegram releases a new API method like sendPoll, this Skill guides you through creating the necessary Kotlin code to integrate it seamlessly into the library.

Quick Start

Use the add-telegram-api-action skill to add a new Telegram API method for sending a video note.

Frequently Asked Questions about add-telegram-api-action

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

FAQPage Schema
How do I add new Telegram Bot API methods to a Kotlin library?

Adding new Telegram Bot API methods to a Kotlin library involves generating corresponding action and options classes that integrate optional parameters and complex types. This process ensures adherence to Telegram API specifications and library coding standards through validation.

What types of action classes can I generate for Telegram bot development?

You can generate various action classes for Telegram bot development, including SimpleAction, MediaAction, and generic Action types. These classes support optional parameters and integrate features like MarkupFeature and CaptionFeature for comprehensive API coverage.

How does code generation handle complex type handling for Telegram API specifications?

Code generation handles complex type handling for Telegram API specifications by validating parameters and features during class creation. It automatically structures the required Kotlin action and options classes to match the exact API method definitions and library standards.

Can I integrate optional parameters like MarkupFeature and CaptionFeature into Telegram bot actions?

You can integrate optional parameters, including MarkupFeature and CaptionFeature, into Telegram bot actions. The generation process supports these features alongside complex type handling to ensure the resulting Kotlin classes fully represent the desired API capabilities.

What is the best way to implement support for a newly released Telegram Bot API endpoint?

The best way to implement support for a newly released Telegram Bot API endpoint is to use code generation assistance to automate the creation of action classes, options classes, and top-level Kotlin functions, ensuring seamless library integration.

Does this Telegram bot code generation process enforce library coding standards?

The Telegram bot code generation process enforces library coding standards through built-in validation steps. It ensures that every generated action and options class adheres strictly to both the library architecture and the official Telegram API specifications.