Skip to content

Releases: prog-time/max-php-sdk

v1.1.4 | Правки в Messages::edit() и CI/CD

Choose a tag to compare

@prog-time prog-time released this 07 Apr 21:17
78fd1cc

What's Changed

  • issues-9 | fix Messages::edit() to parse flat API response directly by @prog-time in #13

v1.1.3 | Правки в Messages::edit()

Choose a tag to compare

@prog-time prog-time released this 07 Apr 20:56
627e81e

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()

Choose a tag to compare

@prog-time prog-time released this 07 Apr 20:24
db1c328

What's Changed

  • issues-9 | add attachments parameter to Messages::edit() with tests f… by @prog-time in #11

v1.1.1 | Fix errors

Choose a tag to compare

@prog-time prog-time released this 05 Apr 11:11
79979cb

What's Changed

v1.1.0 | Configured methods for sending files

Choose a tag to compare

@prog-time prog-time released this 08 Mar 19:39
77fa8a3
  • Added examples for sending files
  • Configured methods for sending files

v1.0.0 | First relise

Choose a tag to compare

@prog-time prog-time released this 21 Feb 22:39
c5f32f6

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 $retryAfter field), NetworkException
  • Incoming webhook request parser ('Webhook::parse()`)

Requirements

  • PHP 8.1+
  • Composer

Installation

composer require prog-time/max-php-sdk