mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-10-14 16:08:18 +00:00
Deprecate what the API no longer has
Methods (per the API changelog and schema 0.0.33):
- getChats(): GET /chats is not supported since June 2026
- getChatByLink(), deleteChat(): no longer documented, absent from
the schema
- addMembers(): POST /chats/{chatId}/members is limited since
9 September 2026 and removed on 30 September 2026
Models and enums absent from schema 0.0.33: the chat inline button,
reply buttons and ReplyButtonType, Intent, MessageChatCreatedUpdate
and its handlers, Chat::$chatMessageId.
Only @deprecated tags and docs; nothing is removed, so existing code
keeps working until a major release. README coverage map updated.
This commit is contained in:
@@ -12,6 +12,6 @@ enum InlineButtonType: string
|
||||
case RequestContact = 'request_contact';
|
||||
case OpenApp = 'open_app';
|
||||
case Message = 'message';
|
||||
case Chat = 'chat';
|
||||
case Chat = 'chat'; // @deprecated not in the schema since 0.0.33
|
||||
case Clipboard = 'clipboard';
|
||||
}
|
||||
|
||||
@@ -4,6 +4,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace BushlanovDev\MaxMessengerBot\Enums;
|
||||
|
||||
/**
|
||||
* @deprecated Not part of the Bot API schema since 0.0.33.
|
||||
*/
|
||||
enum Intent: string
|
||||
{
|
||||
case Positive = 'positive';
|
||||
|
||||
@@ -4,6 +4,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace BushlanovDev\MaxMessengerBot\Enums;
|
||||
|
||||
/**
|
||||
* @deprecated Not part of the Bot API schema since 0.0.33.
|
||||
*/
|
||||
enum ReplyButtonType: string
|
||||
{
|
||||
case Message = 'message';
|
||||
|
||||
@@ -24,7 +24,7 @@ enum UpdateType: string
|
||||
case BotStarted = 'bot_started';
|
||||
case BotStopped = 'bot_stopped';
|
||||
case ChatTitleChanged = 'chat_title_changed';
|
||||
case MessageChatCreated = 'message_chat_created';
|
||||
case MessageChatCreated = 'message_chat_created'; // @deprecated not in the schema since 0.0.33
|
||||
case CommentCreated = 'comment_created';
|
||||
case CommentEdited = 'comment_edited';
|
||||
case CommentRemoved = 'comment_removed';
|
||||
|
||||
Reference in New Issue
Block a user