Skip to content

Commit

Permalink
Merge pull request #932 from andrey-helldar/patch/2022-03-19/22-54
Browse files Browse the repository at this point in the history
  • Loading branch information
irazasyed authored Mar 24, 2022
2 parents 948553f + 8f84cb5 commit f5c8358
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Objects/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ public function relations()
'entities' => MessageEntity::class,
'caption_entities' => MessageEntity::class,
'audio' => Audio::class,
'document' => Document::class,
'dice' => Dice::class,
'animation' => Animation::class,
'document' => Document::class,
'game' => Game::class,
'photo' => PhotoSize::class,
'sticker' => Sticker::class,
Expand All @@ -86,9 +87,11 @@ public function relations()
'location' => Location::class,
'venue' => Venue::class,
'poll' => Poll::class,
'new_chat_member' => ChatMember::class,
'new_chat_members' => User::class,
'left_chat_member' => User::class,
'new_chat_photo' => PhotoSize::class,
'delete_chat_photo' => ChatPhoto::class,
'pinned_message' => self::class,
'invoice' => Invoice::class,
'successful_payment' => SuccessfulPayment::class,
Expand Down Expand Up @@ -123,6 +126,9 @@ public function detectType()
$types = [
'text',
'audio',
'animation',
'dice',
'invoice',
'document',
'game',
'photo',
Expand All @@ -135,6 +141,7 @@ public function detectType()
'venue',
'poll',
'new_chat_member',
'new_chat_members',
'left_chat_member',
'new_chat_title',
'new_chat_photo',
Expand Down

0 comments on commit f5c8358

Please sign in to comment.