Net-API-Telegram
view release on metacpan or search on metacpan
Name of the venue
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 future.
Reference: <https://core.telegram.org/bots/api#sendvideo>
This methods takes the following parameters:
*caption*
This parameter type is String and is optional.
Video caption (may also be used when resending videos by
file_id), 0-1024 characters
*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)
*disable_notification*
This parameter type is Boolean and is optional.
Sends the message silently. Users will receive a
notification with no sound.
*duration*
This parameter type is Integer and is optional.
Duration of sent video in seconds
*height*
This parameter type is Integer and is optional.
Video height
*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.
*reply_markup*
This parameter type is one of the following
InlineKeyboardMarkup or ReplyKeyboardMarkup or
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
using multipart/form-data under <file_attach_name>. More
info on Sending Files »
*video* This parameter type is one of the following 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 Sending Files »
*width* This parameter type is Integer and is optional.
Video width
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: <https://core.telegram.org/bots/api#sendvideonote>
This methods takes the following parameters:
*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)
*disable_notification*
This parameter type is Boolean and is optional.
Sends the message silently. Users will receive a
notification with no sound.
*duration*
This parameter type is Integer and is optional.
Duration of sent video in seconds
*length*
This parameter type is Integer and is optional.
Video width and height, i.e. diameter of the video message
*reply_markup*
This parameter type is one of the following
InlineKeyboardMarkup or ReplyKeyboardMarkup or
ReplyKeyboardRemove or ForceReply and is optional.
Additional interface options. A JSON-serialized object for
( run in 0.837 second using v1.01-cache-2.11-cpan-d7f47b0818f )