Updated InputMedia objects

This commit is contained in:
netkas 2024-10-04 00:36:07 -04:00
parent 1d11ef3b2a
commit 3774b7f8c0
7 changed files with 113 additions and 415 deletions

View file

@ -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;
}