Updated InputMedia objects
This commit is contained in:
parent
1d11ef3b2a
commit
3774b7f8c0
7 changed files with 113 additions and 415 deletions
|
@ -15,17 +15,14 @@
|
|||
|
||||
abstract class InputMedia implements ObjectTypeInterface
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $type;
|
||||
protected InputMediaType $type;
|
||||
|
||||
/**
|
||||
* Type of the result, can be photo, video, animation, audio or document
|
||||
*
|
||||
* @return string
|
||||
* @return InputMediaType
|
||||
*/
|
||||
public function getType(): string
|
||||
public function getType(): InputMediaType
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue