@@ -46,6 +46,10 @@ class Update extends BaseType implements TypeInterface
4646 'my_chat_member ' => ChatMemberUpdated::class,
4747 'chat_member ' => ChatMemberUpdated::class,
4848 'chat_join_request ' => ChatJoinRequest::class,
49+ 'message_reaction ' => MessageReactionUpdated::class,
50+ 'message_reaction_count ' => MessageReactionCountUpdated::class,
51+ 'chat_boost ' => ChatBoostUpdated::class,
52+ 'chat_boost_removed ' => ChatBoostRemoved::class,
4953 ];
5054
5155 /**
@@ -159,6 +163,41 @@ class Update extends BaseType implements TypeInterface
159163 */
160164 protected $ chatJoinRequest ;
161165
166+ /**
167+ * Optional. A reaction to a message was changed by a user.
168+ * The bot must be an administrator in the chat and must explicitly specify 'message_reaction'
169+ * in the list of allowed_updates to receive these updates. The update isn't received for reactions set by bots.
170+ *
171+ * @var MessageReactionUpdated|null
172+ */
173+ protected $ messageReaction ;
174+
175+ /**
176+ * Optional. Reactions to a message with anonymous reactions were changed.
177+ * The bot must be an administrator in the chat and must explicitly specify 'message_reaction_count'
178+ * in the list of allowed_updates to receive these updates.
179+ * The updates are grouped and can be sent with delay up to a few minutes.
180+ *
181+ * @var MessageReactionCountUpdated|null
182+ */
183+ protected $ messageReactionCount ;
184+
185+ /**
186+ * Optional. A chat boost was added or changed.
187+ * The bot must be an administrator in the chat to receive these updates.
188+ *
189+ * @var ChatBoostUpdated|null
190+ */
191+ protected $ chatBoost ;
192+
193+ /**
194+ * Optional. A boost was removed from a chat.
195+ * The bot must be an administrator in the chat to receive these updates.
196+ *
197+ * @var ChatBoostRemoved|null
198+ */
199+ protected $ removedChatBoost ;
200+
162201 /**
163202 * @return int
164203 */
@@ -433,4 +472,72 @@ public function setChatJoinRequest($chatJoinRequest)
433472 {
434473 $ this ->chatJoinRequest = $ chatJoinRequest ;
435474 }
475+
476+ /**
477+ * @return MessageReactionUpdated|null
478+ */
479+ public function getMessageReaction ()
480+ {
481+ return $ this ->messageReaction ;
482+ }
483+
484+ /**
485+ * @param MessageReactionUpdated|null $messageReaction
486+ * @return void
487+ */
488+ public function setMessageReaction (?MessageReactionUpdated $ messageReaction )
489+ {
490+ $ this ->messageReaction = $ messageReaction ;
491+ }
492+
493+ /**
494+ * @return MessageReactionCountUpdated|null
495+ */
496+ public function getMessageReactionCount ()
497+ {
498+ return $ this ->messageReactionCount ;
499+ }
500+
501+ /**
502+ * @param MessageReactionCountUpdated|null $messageReactionCount
503+ * @return void
504+ */
505+ public function setMessageReactionCount (?MessageReactionCountUpdated $ messageReactionCount )
506+ {
507+ $ this ->messageReactionCount = $ messageReactionCount ;
508+ }
509+
510+ /**
511+ * @return ChatBoostUpdated|null
512+ */
513+ public function getChatBoost ()
514+ {
515+ return $ this ->chatBoost ;
516+ }
517+
518+ /**
519+ * @param ChatBoostUpdated|null $chatBoost
520+ * @return void
521+ */
522+ public function setChatBoost ($ chatBoost )
523+ {
524+ $ this ->chatBoost = $ chatBoost ;
525+ }
526+
527+ /**
528+ * @return ChatBoostRemoved|null
529+ */
530+ public function getChatBoostRemoved ()
531+ {
532+ return $ this ->removedChatBoost ;
533+ }
534+
535+ /**
536+ * @param ChatBoostRemoved|null $removedChatBoost
537+ * @return void
538+ */
539+ public function setChatBoostRemoved ($ removedChatBoost )
540+ {
541+ $ this ->removedChatBoost = $ removedChatBoost ;
542+ }
436543}
0 commit comments