Add general support for BotAPI v6.6

This commit is contained in:
eleksir
2023-04-16 16:58:59 +03:00
parent f019b98b1f
commit df3c198bce
6 changed files with 31 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ has 'file_unique_id';
has 'width';
has 'height';
has 'duration';
has 'thumb'; #PhotoSize
has 'thumbnail'; #PhotoSize
has 'file_name';
has 'mime_type';
has 'file_size';
@@ -24,7 +24,7 @@ has 'file_size';
sub fields {
return { scalar => [qw/file_id file_unique_id width height duration file_name mime_type
file_size/],
'Teapot::Bot::Object::PhotoSize' => [qw/thumb/],
'Teapot::Bot::Object::PhotoSize' => [qw/thumbnail/],
};
}