Skip to content

Commit

Permalink
Add support for Bot API 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Stajor committed Feb 1, 2022
1 parent a11a23a commit 53e8186
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Types/Poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Poll extends Type {
public bool $allows_multiple_answers;
public int $correct_option_id;
public string $explanation;
public MessageEntity $explanation_entities;
public array $explanation_entities;
public int $open_period;
public int $close_date;
}
19 changes: 11 additions & 8 deletions src/Types/Sticker.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ class Sticker extends Type {
'mask_position' => MaskPosition::class
];

public $file_id;
public $width;
public $height;
public $thumb;
public $emoji;
public $set_name;
public $mask_position;
public $file_size;
public string $file_id;
public string $file_unique_id;
public int $width;
public int $height;
public bool $is_animated;
public bool $is_video;
public ?PhotoSize $thumb;
public ?string $emoji;
public ?string $set_name;
public ?MaskPosition $mask_position;
public ?int $file_size;
}
1 change: 1 addition & 0 deletions src/Types/StickerSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class StickerSet extends Type {
public string $name;
public string $title;
public bool $is_animated;
public bool $is_video;
public bool $contains_masks;
public array $stickers;
public PhotoSize $thumb;
Expand Down

0 comments on commit 53e8186

Please sign in to comment.