add-telegram-api-tests
CommunityWrite tests for Telegram API actions.
Authorvendelieu
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines the process of writing comprehensive tests for the Telegram Bot API, ensuring the library's robustness and correctness.
Core Features & Use Cases
- Test Class Setup: Provides a clear structure for creating test classes using
BotTestContextand KotestAnnotationSpec. - API Call Helpers: Offers convenient methods (
action.sendReq,SimpleAction.sendReq) for making API calls within tests. - Assertion Methods: Includes built-in assertions for success (
.shouldSuccess()) and failure (.shouldFailure()), with options for checking error messages. - Rate Limit Handling: Demonstrates how to gracefully handle potential 429 (Too Many Requests) errors.
- Use Case: When a new Telegram API method like
setStickerPositionInSetis added to the library, this Skill guides you through creating the necessary unit tests to verify its functionality.
Quick Start
Create a new test file in the telegram-bot/src/jvmTest/kotlin/eu/vendeli/api/ directory, extending BotTestContext and defining a test function with backticks.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: add-telegram-api-tests Download link: https://github.com/vendelieu/telegram-bot/archive/main.zip#add-telegram-api-tests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.