andrew-gos / telegram-bot
Advanced strictly typed Telegram Bot Library
Requires
- php: >=8.2
- ext-ctype: *
- ext-curl: *
- andrew-gos/class-builder: ^1.0
- psr/container: ^2.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- psr/log: ^3.0
Requires (Dev)
- php-query/php-query: @dev
- phpunit/phpunit: ^11.2
README
Version 1.4.5
Overview
This library is designed to simplify the development of Telegram bots by leveraging strict typing and other improvements.
It allows developers to create highly modular and maintainable bots by defining handlers for various updates in a clear and structured manner.
This library supported all available features of Telegram Bot Api (current version is 8.3)
and this library will make updates when new version of Telegram Bot Api.
Contacts
If you received a bug or have an idea, please, write to Gostev71@outlook.com
and type Telegram Library Bug
or Telegram Library Idea
in email header.
Features
- Strict Typing: Ensures type safety and better code completion, reducing the likelihood of runtime errors.
- Ease of Use: Designed with simplicity in mind, allowing you to focus on your bot's functionality rather than boilerplate code.
Installation
To install the library, use Composer:
composer require andrew-gos/telegram-bot
Usage
This library is so easy to use.
In next chapter you will learn about basics.
I`m sorry about too much information,
but to understand, how to use this library,
you need to read it. Good luck!
Basic usage
About basic usage you can learn in BASIC-USAGE.md
Usage in Symfony/Yii2 frameworks (DI)
About how to use this library like service in Symfony read SYMFONY.md
About Yii2 read YII2.md
Advanced usage
About advanced usage you can learn in ADVANCED.md