Download the PHP package prog-time/max-php-sdk without Composer
On this page you can find all versions of the php package prog-time/max-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package max-php-sdk
Max Bot PHP SDK
PHP SDK for the Max messenger Bot API.
Requirements
- PHP 8.1+
- Composer
Installation
Quick start
Configuration
Resources
Bot
Messages
Send a message
Get messages
Edit and delete
Answer a callback (inline button)
Chats
Available sender actions: typing_on, sending_photo, sending_video, sending_audio, sending_file, mark_seen.
Chat members
Subscriptions (webhooks)
Long polling (development only):
Uploads
Send an image
Send a file (PDF, ZIP, DOCX, …)
Send a video or audio
For video and audio, the server processes the file asynchronously. If you send the message too quickly you will receive an attachment.not.ready error — use exponential back-off:
Send multiple images at once
Low-level: get the upload URL only
Available types: Uploads::TYPE_IMAGE, TYPE_VIDEO, TYPE_AUDIO, TYPE_FILE.
Webhooks
Supported update types: message_created, message_callback, message_edited, message_removed, bot_started, bot_stopped, bot_added, bot_removed, user_added, user_removed, chat_title_changed, message_chat_created, message_construction_request, message_constructed.
Error handling
Exception hierarchy:
License
MIT