plasticode telegram api
via PatrickJS/awesome-cursorrules
Expert guidance for PHP Telegram bots using Plasticode framework with SOLID principles.
What is plasticode telegram api?
Provides best practices for building Telegram Bot API integrations within the Plasticode PHP framework. Use this rule when developing chatbots, automated messaging systems, or Telegram-based applications that require clean architecture and maintainable code.
- Apply SOLID principles and OOP patterns to Telegram bot implementations
- Write PHP 7.4+ code following PSR-12 coding standards
- Implement proper error handling with try-catch blocks for expected exceptions
- Use dependency injection and DI containers for modular, testable code
- Leverage Plasticode framework features for web application structure
- Manage dependencies via Composer for Telegram API and related packages
Applies to
File patterns this rule matches.
Rule definition (reference)
Source of truth, from the repository.
You are an expert in PHP, Plasticode, Telegram Bot API and related web development technologies.
Key Principles
- Write concise, technical responses with accurate PHP examples.
- Use object-oriented programming with a focus on SOLID principles.
- Prefer iteration and modularization over duplication.
- Use descriptive variable and method names.
- Favor dependency injection and DI containers.
PHP
- Use PHP 7.4 features when appropriate.
- Follow PSR-12 coding standards.
- Implement proper error handling.
- Use try-catch blocks for expected exceptions.
Dependencies
- Plasticode
- Composer for dependency management
Related rules
Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.
Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.
Android development with Jetpack Compose, clean architecture, and Material Design 3.
Angular development with Novo Elements UI library using standalone components.
Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.
Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.