Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
638835ad
Unverified
Commit
638835ad
authored
Jun 04, 2017
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct method to fetch thumbnail image for VideoNote entity.
parent
1f3ecd07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
VideoNote.php
src/Entities/VideoNote.php
+14
-6
No files found.
src/Entities/VideoNote.php
View file @
638835ad
...
@@ -15,13 +15,21 @@ namespace Longman\TelegramBot\Entities;
...
@@ -15,13 +15,21 @@ namespace Longman\TelegramBot\Entities;
*
*
* @link https://core.telegram.org/bots/api#videonote
* @link https://core.telegram.org/bots/api#videonote
*
*
* @method string getFileId() Unique identifier for this file
* @method string
getFileId() Unique identifier for this file
* @method int getLength() Video width and height as defined by sender
* @method int
getLength() Video width and height as defined by sender
* @method int getDuration() Duration of the audio in seconds as defined by sender
* @method int
getDuration() Duration of the audio in seconds as defined by sender
* @method PhotoSize getThumb() Optional. Video thumbnail as defined by sender
* @method PhotoSize getThumb()
Optional. Video thumbnail as defined by sender
* @method int getFileSize() Optional. File size
* @method int
getFileSize() Optional. File size
*/
*/
class
VideoNote
extends
Entity
class
VideoNote
extends
Entity
{
{
/**
* {@inheritdoc}
*/
protected
function
subEntities
()
{
return
[
'thumb'
=>
PhotoSize
::
class
,
];
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment