Skip to content

Commit 72578a2

Browse files
committed
wip
1 parent 10ca443 commit 72578a2

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
88
- [:ledger: View file changes][Unreleased]
99
### Added
1010
### Changed
11+
BC
12+
Renamed the class KeyboardButtonRequestUser to KeyboardButtonRequestUsers.
13+
Renamed the field request_user to request_users in KeyboardButton.
14+
Renamed DB field message.user_shared to message.users_shared.
15+
1116
### Deprecated
1217
### Removed
1318
### Fixed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
],
3131
"require": {
32-
"php": "^7.3|^8.0",
32+
"php": "^8.1",
3333
"ext-pdo": "*",
3434
"ext-curl": "*",
3535
"ext-json": "*",
@@ -75,7 +75,7 @@
7575
},
7676
"extra": {
7777
"branch-alias": {
78-
"dev-develop": "0.81.x-dev"
78+
"dev-develop": "0.83.x-dev"
7979
}
8080
}
8181
}

src/Entities/Update.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
* @method ChatMemberUpdated getMyChatMember() Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.
3737
* @method ChatMemberUpdated getChatMember() Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify “chat_member” in the list of allowed_updates to receive these updates.
3838
* @method ChatJoinRequest getChatJoinRequest() Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates.
39+
* @method ChatBoostUpdated getChatBoost() Optional. A chat boost was added or changed. The bot must be an administrator in the chat to receive these updates.
40+
* @method ChatBoostRemoved getRemovedChatBoost() Optional. A boost was removed from a chat. The bot must be an administrator in the chat to receive these updates.
3941
*/
4042
class Update extends Entity
4143
{
@@ -55,6 +57,8 @@ class Update extends Entity
5557
public const TYPE_MY_CHAT_MEMBER = 'my_chat_member';
5658
public const TYPE_CHAT_MEMBER = 'chat_member';
5759
public const TYPE_CHAT_JOIN_REQUEST = 'chat_join_request';
60+
public const TYPE_CHAT_BOOST = 'chat_boost';
61+
public const TYPE_REMOVED_CHAT_BOOST = 'removed_chat_boost';
5862

5963
/**
6064
* {@inheritdoc}
@@ -78,6 +82,8 @@ protected function subEntities(): array
7882
self::TYPE_MY_CHAT_MEMBER => ChatMemberUpdated::class,
7983
self::TYPE_CHAT_MEMBER => ChatMemberUpdated::class,
8084
self::TYPE_CHAT_JOIN_REQUEST => ChatJoinRequest::class,
85+
self::TYPE_CHAT_BOOST => ChatBoostUpdated::class,
86+
self::TYPE_REMOVED_CHAT_BOOST => ChatBoostRemoved::class,
8187
];
8288
}
8389

@@ -110,7 +116,7 @@ public function getUpdateType(): ?string
110116
/**
111117
* Get update content
112118
*
113-
* @return CallbackQuery|ChatMemberUpdated|ChosenInlineResult|InlineQuery|Message|PollAnswer|Poll|PreCheckoutQuery|ShippingQuery
119+
* @return Message|EditedMessage|ChannelPost|EditedChannelPost|MessageReactionUpdated|MessageReactionCountUpdated|InlineQuery|ChosenInlineResult|CallbackQuery|ShippingQuery|PreCheckoutQuery|Poll|PollAnswer|ChatMemberUpdated|ChatJoinRequest|ChatBoostUpdated|ChatBoostRemoved
114120
*/
115121
public function getUpdateContent()
116122
{

0 commit comments

Comments
 (0)