Repository navigation
Releases: prog-time/max-php-sdk
Releases · prog-time/max-php-sdk
Release list
v1.1.4 | Правки в Messages::edit() и CI/CD
What's Changed
- issues-9 | fix Messages::edit() to parse flat API response directly by @prog-time in #13
v1.1.3 | Правки в Messages::edit()
What's Changed
- issues-9 | change Messages::edit() return type from bool to Message, … by @prog-time in #12
v1.1.2 | Add attachments parameter to Messages::edit()
What's Changed
- issues-9 | add attachments parameter to Messages::edit() with tests f… by @prog-time in #11
v1.1.1 | Fix errors
What's Changed
- issues-8 | Fix upload files @prog-time in #10
- issues-9 | Fix keyboard message @prog-time in #11
v1.1.0 | Configured methods for sending files
- Added examples for sending files
- Configured methods for sending files
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