This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
88 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace TelegramBot\Types; | ||
|
||
/** | ||
* Represents a photo to be sent. | ||
*/ | ||
class InputMediaPhoto | ||
{ | ||
/** @var string Type of the result, must be photo */ | ||
public $type; | ||
|
||
/** @var 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 "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. | ||
* More info on Sending Files » https://core.telegram.org/bots/api#sending-files | ||
*/ | ||
public $media; | ||
|
||
/** @var string Optional. Caption of the photo to be sent, 0-200 characters */ | ||
public $caption; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace TelegramBot\Types; | ||
|
||
/** | ||
* Represents a video to be sent. | ||
*/ | ||
class InputMediaVideo | ||
{ | ||
/** @var string Type of the result, must be video */ | ||
public $type; | ||
|
||
/** @var 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 "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. | ||
* More info on Sending Files » https://core.telegram.org/bots/api#sending-files | ||
*/ | ||
public $media; | ||
|
||
/** @var string Optional. Caption of the photo to be sent, 0-200 characters */ | ||
public $caption; | ||
|
||
/** @var int Optional. Video width */ | ||
public $width; | ||
|
||
/** @var int Optional. Video height */ | ||
public $height; | ||
|
||
/** @var int Optional. Video duration */ | ||
public $duration; | ||
} |