Net-API-Telegram

 view release on metacpan or  search on metacpan

lib/Net/API/Telegram.pm  view on Meta::CPAN

Name of the venue

=back

=item B<sendVideo>( %PARAMETERS )

Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the f...

Reference: L<https://core.telegram.org/bots/api#sendvideo>

This methods takes the following parameters:

=over 8

=item I<caption>

This parameter type is String and is optional.

Video caption (may also be used when resending videos by file_id), 0-1024 characters

=item I<chat_id>

This parameter type is one of the following Integer or String and is required.
Unique identifier for the target chat or username of the target channel (in the format @channelusername)

=item I<disable_notification>

This parameter type is Boolean and is optional.

Sends the message silently. Users will receive a notification with no sound.

=item I<duration>

This parameter type is Integer and is optional.

Duration of sent video in seconds

=item I<height>

This parameter type is Integer and is optional.

Video height

=item I<parse_mode>

This parameter type is String and is 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 I<reply_markup>

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...

=item I<width>

This parameter type is Integer and is optional.

Video width

=back

=item B<sendVideoNote>( %PARAMETERS )

As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent Message is returned.

Reference: L<https://core.telegram.org/bots/api#sendvideonote>

This methods takes the following parameters:

=over 8

=item I<chat_id>

This parameter type is one of the following Integer or String and is required.
Unique identifier for the target chat or username of the target channel (in the format @channelusername)

=item I<disable_notification>

This parameter type is Boolean and is optional.

Sends the message silently. Users will receive a notification with no sound.

=item I<duration>

This parameter type is Integer and is optional.

Duration of sent video in seconds

=item I<length>

This parameter type is Integer and is optional.

Video width and height, i.e. diameter of the video message

=item I<reply_markup>

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.



( run in 0.786 second using v1.01-cache-2.11-cpan-d7f47b0818f )