Repository navigation
v1.0.0 | First relise
Description:
The first stable release of the PHP SDK for the Bot API of the Max messenger.
Features
API Resources
- Bot — receiving information about the bot (`bot->me()')
- Messages — sending, receiving, editing and deleting messages; responding to callback of inline buttons
- Chats — list of chats, receiving and updating information, pinning messages, sending actions (typing, etc.)
- ChatMembers — list of participants and administrators, adding and deleting users, rights management
- Subscriptions — subscribe to the webhook, receive updates via long polling
- Uploads — getting a link to download files (images, videos, audio, files)
Infrastructure
- PHP 8.1+ support
- HTTP client based on Guzzle 7
- Typed DTOs for all API entities:
BotInfo,Message,Chat,Member,Subscription,Update',UploadResult` - Hierarchy of exceptions:
ApiException',RateLimitException' (with the$retryAfterfield),NetworkException - Incoming webhook request parser ('Webhook::parse()`)
Requirements
- PHP 8.1+
- Composer
Installation
composer require prog-time/max-php-sdk