Update objects of Teapot::Bot according Bot API docs. Add missing fields.
+ Add missing fields some of existing objects * Fix copy-paste errors in Teapot::Bot::Object::PollAnswer
This commit is contained in:
@@ -8,6 +8,7 @@ use Teapot::Bot::Object::PhotoSize;
|
||||
$Teapot::Bot::Object::Document::VERSION = '0.022';
|
||||
|
||||
has 'file_id';
|
||||
has 'file_unique_id';
|
||||
has 'thumb'; #PhotoSize
|
||||
has 'file_name';
|
||||
has 'mime_type';
|
||||
@@ -15,7 +16,7 @@ has 'file_size';
|
||||
|
||||
sub fields {
|
||||
return {
|
||||
scalar => [qw/file_id file_name mime_type file_size/],
|
||||
scalar => [qw/file_id file_unique_id file_name mime_type file_size/],
|
||||
'Teapot::Bot::Object::PhotoSize' => [qw/thumb/]
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user