Net-API-Telegram
view release on metacpan or search on metacpan
ReplyKeyboardRemove or ForceReply and is optional.
Additional interface options. A JSON-serialized object for
an inline keyboard, custom reply keyboard, instructions to
remove reply keyboard or to force a reply from the user.
*reply_to_message_id*
This parameter type is Integer and is optional.
If the message is a reply, ID of the original message
*supports_streaming*
This parameter type is Boolean and is optional.
Pass True, if the uploaded video is suitable for streaming
*thumb* This parameter type is one of the following InputFile or
String and is optional. Thumbnail of the file sent; can be
ignored if thumbnail generation for the file is supported
server-side. The thumbnail should be in JPEG format and less
than 200 kB in size. A thumbnailâs width and height should
not exceed 320. Ignored if the file is not uploaded using
multipart/form-data. Thumbnails canât be reused and can be
only uploaded as a new file, so you can pass
âattach://<file_attach_name>â if the thumbnail was uploaded
lib/Net/API/Telegram.pm view on Meta::CPAN
This parameter type is one of the following L<InlineKeyboardMarkup> or L<ReplyKeyboardMarkup> or L<ReplyKeyboardRemove> or L<ForceReply> and is optional.
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
=item I<reply_to_message_id>
This parameter type is Integer and is optional.
If the message is a reply, ID of the original message
=item I<supports_streaming>
This parameter type is Boolean and is optional.
Pass True, if the uploaded video is suitable for streaming
=item I<thumb>
This parameter type is one of the following L<InputFile> or String and is optional.
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnailâs width and height should not exceed 320. Ignored if the file...
=item I<video>
This parameter type is one of the following L<InputFile> or String and is required.
Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. More info on Sendi...
lib/Net/API/Telegram/InputMediaVideo.pm view on Meta::CPAN
sub caption { return( shift->_set_get_scalar( 'caption', @_ ) ); }
sub duration { return( shift->_set_get_number( 'duration', @_ ) ); }
sub height { return( shift->_set_get_number( 'height', @_ ) ); }
sub media { return( shift->_set_get_scalar( 'media', @_ ) ); }
sub parse_mode { return( shift->_set_get_scalar( 'parse_mode', @_ ) ); }
sub supports_streaming { return( shift->_set_get_scalar( 'supports_streaming', @_ ) ); }
sub type { return( shift->_set_get_scalar( 'type', @_ ) ); }
sub width { return( shift->_set_get_number( 'width', @_ ) ); }
sub _is_boolean { return( grep( /^$_[1]$/, qw( supports_streaming ) ) ); }
1;
__END__
=encoding utf-8
=head1 NAME
Net::API::Telegram::InputMediaVideo - A video to be sent
lib/Net/API/Telegram/InputMediaVideo.pm view on Meta::CPAN
Optional. Video height
=item B<media>( String )
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass I<attach://<file_attach_name>> to upload a new one using multipart/form-data under <...
=item B<parse_mode>( String )
Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
=item B<supports_streaming>( Boolean )
Optional. Pass True, if the uploaded video is suitable for streaming
=item B<thumb>( InputFile or String )
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnailâs width and height should not exceed 320. Ignored i...
=item B<type>( String )
Type of the result, must be video
=item B<width>( Integer )
( run in 0.247 second using v1.01-cache-2.11-cpan-4d50c553e7e )