diff --git a/src/Layer/Base.php b/src/Layer/Base.php index 0454fa6..7590d03 100644 --- a/src/Layer/Base.php +++ b/src/Layer/Base.php @@ -5,7 +5,7 @@ use GuzzleHttp\Client; use Tii\Telepath\CastsToTelegramTypes; use Tii\Telepath\Exceptions\TelegramException; -use Tii\Telepath\InputFile; +use Tii\Telepath\Types\InputFile; use Tii\Telepath\Telegram\Update; use Tii\Telepath\Telegram\User; diff --git a/src/Layer/Generated.php b/src/Layer/Generated.php index 81568d5..cd90b95 100644 --- a/src/Layer/Generated.php +++ b/src/Layer/Generated.php @@ -6,7 +6,7 @@ namespace Tii\Telepath\Layer; -use Tii\Telepath\InputFile; +use Tii\Telepath\Types\InputFile; use Tii\Telepath\Telegram\BotCommand; use Tii\Telepath\Telegram\BotCommandScope; use Tii\Telepath\Telegram\ChatAdministratorRights; diff --git a/src/Telegram/Animation.php b/src/Telegram/Animation.php index 8c40d59..ed4bb12 100644 --- a/src/Telegram/Animation.php +++ b/src/Telegram/Animation.php @@ -9,7 +9,7 @@ /** * This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound). */ -class Animation extends \Tii\Telepath\Type +class Animation extends \Tii\Telepath\Types\Type { /** Identifier for this file, which can be used to download or reuse the file */ public string $file_id; diff --git a/src/Telegram/Audio.php b/src/Telegram/Audio.php index 83aa5ea..c41b802 100644 --- a/src/Telegram/Audio.php +++ b/src/Telegram/Audio.php @@ -9,7 +9,7 @@ /** * This object represents an audio file to be treated as music by the Telegram clients. */ -class Audio extends \Tii\Telepath\Type +class Audio extends \Tii\Telepath\Types\Type { /** Identifier for this file, which can be used to download or reuse the file */ public string $file_id; diff --git a/src/Telegram/BotCommand.php b/src/Telegram/BotCommand.php index b3e7c3b..733b687 100644 --- a/src/Telegram/BotCommand.php +++ b/src/Telegram/BotCommand.php @@ -9,7 +9,7 @@ /** * This object represents a bot command. */ -class BotCommand extends \Tii\Telepath\Type +class BotCommand extends \Tii\Telepath\Types\Type { /** Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores. */ public string $command; diff --git a/src/Telegram/BotCommandScope.php b/src/Telegram/BotCommandScope.php index 08ce209..a170026 100644 --- a/src/Telegram/BotCommandScope.php +++ b/src/Telegram/BotCommandScope.php @@ -9,7 +9,7 @@ /** * This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported: */ -abstract class BotCommandScope extends \Tii\Telepath\Type +abstract class BotCommandScope extends \Tii\Telepath\Types\Type { /** Scope type */ public string $type; diff --git a/src/Telegram/CallbackQuery.php b/src/Telegram/CallbackQuery.php index 7946a6d..69f7a19 100644 --- a/src/Telegram/CallbackQuery.php +++ b/src/Telegram/CallbackQuery.php @@ -9,7 +9,7 @@ /** * This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present. */ -class CallbackQuery extends \Tii\Telepath\Type +class CallbackQuery extends \Tii\Telepath\Types\Type { /** Unique identifier for this query */ public string $id; diff --git a/src/Telegram/Chat.php b/src/Telegram/Chat.php index 6c9555c..7e3aa7e 100644 --- a/src/Telegram/Chat.php +++ b/src/Telegram/Chat.php @@ -9,7 +9,7 @@ /** * This object represents a chat. */ -class Chat extends \Tii\Telepath\Type +class Chat extends \Tii\Telepath\Types\Type { /** Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier. */ public int $id; diff --git a/src/Telegram/ChatAdministratorRights.php b/src/Telegram/ChatAdministratorRights.php index aee368f..211643c 100644 --- a/src/Telegram/ChatAdministratorRights.php +++ b/src/Telegram/ChatAdministratorRights.php @@ -9,7 +9,7 @@ /** * Represents the rights of an administrator in a chat. */ -class ChatAdministratorRights extends \Tii\Telepath\Type +class ChatAdministratorRights extends \Tii\Telepath\Types\Type { /** True, if the user's presence in the chat is hidden */ public bool $is_anonymous; diff --git a/src/Telegram/ChatInviteLink.php b/src/Telegram/ChatInviteLink.php index 7356926..8a510fb 100644 --- a/src/Telegram/ChatInviteLink.php +++ b/src/Telegram/ChatInviteLink.php @@ -9,7 +9,7 @@ /** * Represents an invite link for a chat. */ -class ChatInviteLink extends \Tii\Telepath\Type +class ChatInviteLink extends \Tii\Telepath\Types\Type { /** The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”. */ public string $invite_link; diff --git a/src/Telegram/ChatJoinRequest.php b/src/Telegram/ChatJoinRequest.php index b0638f8..bdc05e0 100644 --- a/src/Telegram/ChatJoinRequest.php +++ b/src/Telegram/ChatJoinRequest.php @@ -9,7 +9,7 @@ /** * Represents a join request sent to a chat. */ -class ChatJoinRequest extends \Tii\Telepath\Type +class ChatJoinRequest extends \Tii\Telepath\Types\Type { /** Chat to which the request was sent */ public Chat $chat; diff --git a/src/Telegram/ChatLocation.php b/src/Telegram/ChatLocation.php index ca739d8..78c4b05 100644 --- a/src/Telegram/ChatLocation.php +++ b/src/Telegram/ChatLocation.php @@ -9,7 +9,7 @@ /** * Represents a location to which a chat is connected. */ -class ChatLocation extends \Tii\Telepath\Type +class ChatLocation extends \Tii\Telepath\Types\Type { /** The location to which the supergroup is connected. Can't be a live location. */ public Location $location; diff --git a/src/Telegram/ChatMember.php b/src/Telegram/ChatMember.php index cddce5e..256b51c 100644 --- a/src/Telegram/ChatMember.php +++ b/src/Telegram/ChatMember.php @@ -9,7 +9,7 @@ /** * This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported: */ -abstract class ChatMember extends \Tii\Telepath\Type +abstract class ChatMember extends \Tii\Telepath\Types\Type { /** The member's status in the chat */ public string $status; diff --git a/src/Telegram/ChatMemberUpdated.php b/src/Telegram/ChatMemberUpdated.php index e18acfd..754bba5 100644 --- a/src/Telegram/ChatMemberUpdated.php +++ b/src/Telegram/ChatMemberUpdated.php @@ -9,7 +9,7 @@ /** * This object represents changes in the status of a chat member. */ -class ChatMemberUpdated extends \Tii\Telepath\Type +class ChatMemberUpdated extends \Tii\Telepath\Types\Type { /** Chat the user belongs to */ public Chat $chat; diff --git a/src/Telegram/ChatPermissions.php b/src/Telegram/ChatPermissions.php index 8880b0f..4d1e98c 100644 --- a/src/Telegram/ChatPermissions.php +++ b/src/Telegram/ChatPermissions.php @@ -9,7 +9,7 @@ /** * Describes actions that a non-administrator user is allowed to take in a chat. */ -class ChatPermissions extends \Tii\Telepath\Type +class ChatPermissions extends \Tii\Telepath\Types\Type { /** Optional. True, if the user is allowed to send text messages, contacts, locations and venues */ public ?bool $can_send_messages = null; diff --git a/src/Telegram/ChatPhoto.php b/src/Telegram/ChatPhoto.php index 06b4639..69d84eb 100644 --- a/src/Telegram/ChatPhoto.php +++ b/src/Telegram/ChatPhoto.php @@ -9,7 +9,7 @@ /** * This object represents a chat photo. */ -class ChatPhoto extends \Tii\Telepath\Type +class ChatPhoto extends \Tii\Telepath\Types\Type { /** File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. */ public string $small_file_id; diff --git a/src/Telegram/ChosenInlineResult.php b/src/Telegram/ChosenInlineResult.php index 37bacda..83bf910 100644 --- a/src/Telegram/ChosenInlineResult.php +++ b/src/Telegram/ChosenInlineResult.php @@ -9,7 +9,7 @@ /** * Represents a result of an inline query that was chosen by the user and sent to their chat partner. */ -class ChosenInlineResult extends \Tii\Telepath\Type +class ChosenInlineResult extends \Tii\Telepath\Types\Type { /** The unique identifier for the result that was chosen */ public string $result_id; diff --git a/src/Telegram/Contact.php b/src/Telegram/Contact.php index 0f455f4..4932cc5 100644 --- a/src/Telegram/Contact.php +++ b/src/Telegram/Contact.php @@ -9,7 +9,7 @@ /** * This object represents a phone contact. */ -class Contact extends \Tii\Telepath\Type +class Contact extends \Tii\Telepath\Types\Type { /** Contact's phone number */ public string $phone_number; diff --git a/src/Telegram/Dice.php b/src/Telegram/Dice.php index 56ba2cf..01e3457 100644 --- a/src/Telegram/Dice.php +++ b/src/Telegram/Dice.php @@ -9,7 +9,7 @@ /** * This object represents an animated emoji that displays a random value. */ -class Dice extends \Tii\Telepath\Type +class Dice extends \Tii\Telepath\Types\Type { /** Emoji on which the dice throw animation is based */ public string $emoji; diff --git a/src/Telegram/Document.php b/src/Telegram/Document.php index 6dc15f8..73ac86b 100644 --- a/src/Telegram/Document.php +++ b/src/Telegram/Document.php @@ -9,7 +9,7 @@ /** * This object represents a general file (as opposed to photos, voice messages and audio files). */ -class Document extends \Tii\Telepath\Type +class Document extends \Tii\Telepath\Types\Type { /** Identifier for this file, which can be used to download or reuse the file */ public string $file_id; diff --git a/src/Telegram/EncryptedCredentials.php b/src/Telegram/EncryptedCredentials.php index c91f9bc..85e39a2 100644 --- a/src/Telegram/EncryptedCredentials.php +++ b/src/Telegram/EncryptedCredentials.php @@ -9,7 +9,7 @@ /** * Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes. */ -class EncryptedCredentials extends \Tii\Telepath\Type +class EncryptedCredentials extends \Tii\Telepath\Types\Type { /** Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication */ public string $data; diff --git a/src/Telegram/EncryptedPassportElement.php b/src/Telegram/EncryptedPassportElement.php index 45bb953..e762a5d 100644 --- a/src/Telegram/EncryptedPassportElement.php +++ b/src/Telegram/EncryptedPassportElement.php @@ -9,7 +9,7 @@ /** * Contains information about documents or other Telegram Passport elements shared with the bot by the user. */ -class EncryptedPassportElement extends \Tii\Telepath\Type +class EncryptedPassportElement extends \Tii\Telepath\Types\Type { /** Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”. */ public string $type; diff --git a/src/Telegram/File.php b/src/Telegram/File.php index f0a6240..e90f798 100644 --- a/src/Telegram/File.php +++ b/src/Telegram/File.php @@ -9,7 +9,7 @@ /** * This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot/. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile. */ -class File extends \Tii\Telepath\Type +class File extends \Tii\Telepath\Types\Type { /** Identifier for this file, which can be used to download or reuse the file */ public string $file_id; diff --git a/src/Telegram/ForceReply.php b/src/Telegram/ForceReply.php index 2d248c8..565d837 100644 --- a/src/Telegram/ForceReply.php +++ b/src/Telegram/ForceReply.php @@ -9,7 +9,7 @@ /** * Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. */ -class ForceReply extends \Tii\Telepath\Type +class ForceReply extends \Tii\Telepath\Types\Type { /** Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply' */ public bool $force_reply; diff --git a/src/Telegram/Game.php b/src/Telegram/Game.php index ee80272..a3073e6 100644 --- a/src/Telegram/Game.php +++ b/src/Telegram/Game.php @@ -9,7 +9,7 @@ /** * This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers. */ -class Game extends \Tii\Telepath\Type +class Game extends \Tii\Telepath\Types\Type { /** Title of the game */ public string $title; diff --git a/src/Telegram/GameHighScore.php b/src/Telegram/GameHighScore.php index b2051be..c05fa59 100644 --- a/src/Telegram/GameHighScore.php +++ b/src/Telegram/GameHighScore.php @@ -9,7 +9,7 @@ /** * This object represents one row of the high scores table for a game. */ -class GameHighScore extends \Tii\Telepath\Type +class GameHighScore extends \Tii\Telepath\Types\Type { /** Position in high score table for the game */ public int $position; diff --git a/src/Telegram/InlineKeyboardButton.php b/src/Telegram/InlineKeyboardButton.php index baa69ed..ab083ef 100644 --- a/src/Telegram/InlineKeyboardButton.php +++ b/src/Telegram/InlineKeyboardButton.php @@ -9,7 +9,7 @@ /** * This object represents one button of an inline keyboard. You must use exactly one of the optional fields. */ -class InlineKeyboardButton extends \Tii\Telepath\Type +class InlineKeyboardButton extends \Tii\Telepath\Types\Type { /** Label text on the button */ public string $text; diff --git a/src/Telegram/InlineKeyboardMarkup.php b/src/Telegram/InlineKeyboardMarkup.php index c6d6b33..17fca07 100644 --- a/src/Telegram/InlineKeyboardMarkup.php +++ b/src/Telegram/InlineKeyboardMarkup.php @@ -9,7 +9,7 @@ /** * This object represents an inline keyboard that appears right next to the message it belongs to. */ -class InlineKeyboardMarkup extends \Tii\Telepath\Type +class InlineKeyboardMarkup extends \Tii\Telepath\Types\Type { /** * Array of button rows, each represented by an Array of InlineKeyboardButton objects diff --git a/src/Telegram/InlineQuery.php b/src/Telegram/InlineQuery.php index 1632a09..dafbbb9 100644 --- a/src/Telegram/InlineQuery.php +++ b/src/Telegram/InlineQuery.php @@ -9,7 +9,7 @@ /** * This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results. */ -class InlineQuery extends \Tii\Telepath\Type +class InlineQuery extends \Tii\Telepath\Types\Type { /** Unique identifier for this query */ public string $id; diff --git a/src/Telegram/InlineQueryResult.php b/src/Telegram/InlineQueryResult.php index 47dc7c1..779b493 100644 --- a/src/Telegram/InlineQueryResult.php +++ b/src/Telegram/InlineQueryResult.php @@ -9,7 +9,7 @@ /** * This object represents one result of an inline query. Telegram clients currently support results of the following 20 types: */ -abstract class InlineQueryResult extends \Tii\Telepath\Type +abstract class InlineQueryResult extends \Tii\Telepath\Types\Type { /** Type of the result */ public string $type; diff --git a/src/Telegram/InputMedia.php b/src/Telegram/InputMedia.php index 41ee6a6..e4417ea 100644 --- a/src/Telegram/InputMedia.php +++ b/src/Telegram/InputMedia.php @@ -9,7 +9,7 @@ /** * This object represents the content of a media message to be sent. It should be one of */ -abstract class InputMedia extends \Tii\Telepath\Type +abstract class InputMedia extends \Tii\Telepath\Types\Type { /** Type of the result */ public string $type; diff --git a/src/Telegram/InputMediaAnimation.php b/src/Telegram/InputMediaAnimation.php index 066d9f5..8cd0d7b 100644 --- a/src/Telegram/InputMediaAnimation.php +++ b/src/Telegram/InputMediaAnimation.php @@ -15,7 +15,7 @@ class InputMediaAnimation extends InputMedia public string $type = 'animation'; /** 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » */ - public \Tii\Telepath\InputFile|string|null $thumb = null; + public \Tii\Telepath\Types\InputFile|string|null $thumb = null; /** Optional. Animation width */ public ?int $width = null; @@ -28,7 +28,7 @@ class InputMediaAnimation extends InputMedia /** * @param string $media 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://” to upload a new one using multipart/form-data under name. More info on Sending Files » - * @param \Tii\Telepath\InputFile|string $thumb 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » + * @param \Tii\Telepath\Types\InputFile|string $thumb 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » * @param string $caption Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing * @param string $parse_mode Optional. Mode for parsing entities in the animation caption. See formatting options for more details. * @param MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode @@ -38,7 +38,7 @@ class InputMediaAnimation extends InputMedia */ public static function make( string $media, - \Tii\Telepath\InputFile|string|null $thumb = null, + \Tii\Telepath\Types\InputFile|string|null $thumb = null, ?string $caption = null, ?string $parse_mode = null, ?array $caption_entities = null, diff --git a/src/Telegram/InputMediaAudio.php b/src/Telegram/InputMediaAudio.php index 96f7796..5793cbd 100644 --- a/src/Telegram/InputMediaAudio.php +++ b/src/Telegram/InputMediaAudio.php @@ -15,7 +15,7 @@ class InputMediaAudio extends InputMedia public string $type = 'audio'; /** 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » */ - public \Tii\Telepath\InputFile|string|null $thumb = null; + public \Tii\Telepath\Types\InputFile|string|null $thumb = null; /** Optional. Duration of the audio in seconds */ public ?int $duration = null; @@ -28,7 +28,7 @@ class InputMediaAudio extends InputMedia /** * @param string $media 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://” to upload a new one using multipart/form-data under name. More info on Sending Files » - * @param \Tii\Telepath\InputFile|string $thumb 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » + * @param \Tii\Telepath\Types\InputFile|string $thumb 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » * @param string $caption Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing * @param string $parse_mode Optional. Mode for parsing entities in the audio caption. See formatting options for more details. * @param MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode @@ -38,7 +38,7 @@ class InputMediaAudio extends InputMedia */ public static function make( string $media, - \Tii\Telepath\InputFile|string|null $thumb = null, + \Tii\Telepath\Types\InputFile|string|null $thumb = null, ?string $caption = null, ?string $parse_mode = null, ?array $caption_entities = null, diff --git a/src/Telegram/InputMediaDocument.php b/src/Telegram/InputMediaDocument.php index c0a600c..7002d4a 100644 --- a/src/Telegram/InputMediaDocument.php +++ b/src/Telegram/InputMediaDocument.php @@ -15,14 +15,14 @@ class InputMediaDocument extends InputMedia public string $type = 'document'; /** 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » */ - public \Tii\Telepath\InputFile|string|null $thumb = null; + public \Tii\Telepath\Types\InputFile|string|null $thumb = null; /** Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album. */ public ?bool $disable_content_type_detection = null; /** * @param string $media 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://” to upload a new one using multipart/form-data under name. More info on Sending Files » - * @param \Tii\Telepath\InputFile|string $thumb 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » + * @param \Tii\Telepath\Types\InputFile|string $thumb 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » * @param string $caption Optional. Caption of the document to be sent, 0-1024 characters after entities parsing * @param string $parse_mode Optional. Mode for parsing entities in the document caption. See formatting options for more details. * @param MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode @@ -30,7 +30,7 @@ class InputMediaDocument extends InputMedia */ public static function make( string $media, - \Tii\Telepath\InputFile|string|null $thumb = null, + \Tii\Telepath\Types\InputFile|string|null $thumb = null, ?string $caption = null, ?string $parse_mode = null, ?array $caption_entities = null, diff --git a/src/Telegram/InputMediaVideo.php b/src/Telegram/InputMediaVideo.php index 0fa7d64..1ce1abf 100644 --- a/src/Telegram/InputMediaVideo.php +++ b/src/Telegram/InputMediaVideo.php @@ -15,7 +15,7 @@ class InputMediaVideo extends InputMedia public string $type = 'video'; /** 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » */ - public \Tii\Telepath\InputFile|string|null $thumb = null; + public \Tii\Telepath\Types\InputFile|string|null $thumb = null; /** Optional. Video width */ public ?int $width = null; @@ -31,7 +31,7 @@ class InputMediaVideo extends InputMedia /** * @param string $media 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://” to upload a new one using multipart/form-data under name. More info on Sending Files » - * @param \Tii\Telepath\InputFile|string $thumb 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » + * @param \Tii\Telepath\Types\InputFile|string $thumb 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://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files » * @param string $caption Optional. Caption of the video to be sent, 0-1024 characters after entities parsing * @param string $parse_mode Optional. Mode for parsing entities in the video caption. See formatting options for more details. * @param MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode @@ -42,7 +42,7 @@ class InputMediaVideo extends InputMedia */ public static function make( string $media, - \Tii\Telepath\InputFile|string|null $thumb = null, + \Tii\Telepath\Types\InputFile|string|null $thumb = null, ?string $caption = null, ?string $parse_mode = null, ?array $caption_entities = null, diff --git a/src/Telegram/InputMessageContent.php b/src/Telegram/InputMessageContent.php index c65f895..3703ce4 100644 --- a/src/Telegram/InputMessageContent.php +++ b/src/Telegram/InputMessageContent.php @@ -9,7 +9,7 @@ /** * This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types: */ -abstract class InputMessageContent extends \Tii\Telepath\Type +abstract class InputMessageContent extends \Tii\Telepath\Types\Type { public static function factory(array $data): static { diff --git a/src/Telegram/Invoice.php b/src/Telegram/Invoice.php index 08babb5..2f3ce1f 100644 --- a/src/Telegram/Invoice.php +++ b/src/Telegram/Invoice.php @@ -9,7 +9,7 @@ /** * This object contains basic information about an invoice. */ -class Invoice extends \Tii\Telepath\Type +class Invoice extends \Tii\Telepath\Types\Type { /** Product name */ public string $title; diff --git a/src/Telegram/KeyboardButton.php b/src/Telegram/KeyboardButton.php index c797c65..d85c026 100644 --- a/src/Telegram/KeyboardButton.php +++ b/src/Telegram/KeyboardButton.php @@ -9,7 +9,7 @@ /** * This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields web_app, request_contact, request_location, and request_poll are mutually exclusive. */ -class KeyboardButton extends \Tii\Telepath\Type +class KeyboardButton extends \Tii\Telepath\Types\Type { /** Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed */ public string $text; diff --git a/src/Telegram/KeyboardButtonPollType.php b/src/Telegram/KeyboardButtonPollType.php index 8f510bc..8c864a2 100644 --- a/src/Telegram/KeyboardButtonPollType.php +++ b/src/Telegram/KeyboardButtonPollType.php @@ -9,7 +9,7 @@ /** * This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed. */ -class KeyboardButtonPollType extends \Tii\Telepath\Type +class KeyboardButtonPollType extends \Tii\Telepath\Types\Type { /** Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type. */ public ?string $type = null; diff --git a/src/Telegram/LabeledPrice.php b/src/Telegram/LabeledPrice.php index 1380386..49d7d7e 100644 --- a/src/Telegram/LabeledPrice.php +++ b/src/Telegram/LabeledPrice.php @@ -9,7 +9,7 @@ /** * This object represents a portion of the price for goods or services. */ -class LabeledPrice extends \Tii\Telepath\Type +class LabeledPrice extends \Tii\Telepath\Types\Type { /** Portion label */ public string $label; diff --git a/src/Telegram/Location.php b/src/Telegram/Location.php index 07a2029..5b60f56 100644 --- a/src/Telegram/Location.php +++ b/src/Telegram/Location.php @@ -9,7 +9,7 @@ /** * This object represents a point on the map. */ -class Location extends \Tii\Telepath\Type +class Location extends \Tii\Telepath\Types\Type { /** Longitude as defined by sender */ public float $longitude; diff --git a/src/Telegram/LoginUrl.php b/src/Telegram/LoginUrl.php index 3cd4a10..094aede 100644 --- a/src/Telegram/LoginUrl.php +++ b/src/Telegram/LoginUrl.php @@ -9,7 +9,7 @@ /** * This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in: */ -class LoginUrl extends \Tii\Telepath\Type +class LoginUrl extends \Tii\Telepath\Types\Type { /** An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization. */ public string $url; diff --git a/src/Telegram/MaskPosition.php b/src/Telegram/MaskPosition.php index 3e5893b..0a56f7c 100644 --- a/src/Telegram/MaskPosition.php +++ b/src/Telegram/MaskPosition.php @@ -9,7 +9,7 @@ /** * This object describes the position on faces where a mask should be placed by default. */ -class MaskPosition extends \Tii\Telepath\Type +class MaskPosition extends \Tii\Telepath\Types\Type { /** The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”. */ public string $point; diff --git a/src/Telegram/MenuButton.php b/src/Telegram/MenuButton.php index 0c1d79f..a5eb307 100644 --- a/src/Telegram/MenuButton.php +++ b/src/Telegram/MenuButton.php @@ -9,7 +9,7 @@ /** * This object describes the bot's menu button in a private chat. It should be one of */ -abstract class MenuButton extends \Tii\Telepath\Type +abstract class MenuButton extends \Tii\Telepath\Types\Type { /** Type of the button */ public string $type; diff --git a/src/Telegram/Message.php b/src/Telegram/Message.php index f387192..a908fdc 100644 --- a/src/Telegram/Message.php +++ b/src/Telegram/Message.php @@ -9,7 +9,7 @@ /** * This object represents a message. */ -class Message extends \Tii\Telepath\Type +class Message extends \Tii\Telepath\Types\Type { /** Unique message identifier inside this chat */ public int $message_id; diff --git a/src/Telegram/MessageAutoDeleteTimerChanged.php b/src/Telegram/MessageAutoDeleteTimerChanged.php index 1fa12e9..15b5394 100644 --- a/src/Telegram/MessageAutoDeleteTimerChanged.php +++ b/src/Telegram/MessageAutoDeleteTimerChanged.php @@ -9,7 +9,7 @@ /** * This object represents a service message about a change in auto-delete timer settings. */ -class MessageAutoDeleteTimerChanged extends \Tii\Telepath\Type +class MessageAutoDeleteTimerChanged extends \Tii\Telepath\Types\Type { /** New auto-delete time for messages in the chat; in seconds */ public int $message_auto_delete_time; diff --git a/src/Telegram/MessageEntity.php b/src/Telegram/MessageEntity.php index 51c1475..6a0f603 100644 --- a/src/Telegram/MessageEntity.php +++ b/src/Telegram/MessageEntity.php @@ -9,7 +9,7 @@ /** * This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc. */ -class MessageEntity extends \Tii\Telepath\Type +class MessageEntity extends \Tii\Telepath\Types\Type { /** Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames) */ public string $type; diff --git a/src/Telegram/MessageId.php b/src/Telegram/MessageId.php index e410968..c91f7f1 100644 --- a/src/Telegram/MessageId.php +++ b/src/Telegram/MessageId.php @@ -9,7 +9,7 @@ /** * This object represents a unique message identifier. */ -class MessageId extends \Tii\Telepath\Type +class MessageId extends \Tii\Telepath\Types\Type { /** Unique message identifier */ public int $message_id; diff --git a/src/Telegram/OrderInfo.php b/src/Telegram/OrderInfo.php index d6b0fb2..67dbb25 100644 --- a/src/Telegram/OrderInfo.php +++ b/src/Telegram/OrderInfo.php @@ -9,7 +9,7 @@ /** * This object represents information about an order. */ -class OrderInfo extends \Tii\Telepath\Type +class OrderInfo extends \Tii\Telepath\Types\Type { /** Optional. User name */ public ?string $name = null; diff --git a/src/Telegram/PassportData.php b/src/Telegram/PassportData.php index 16ae41d..fff83f9 100644 --- a/src/Telegram/PassportData.php +++ b/src/Telegram/PassportData.php @@ -9,7 +9,7 @@ /** * Contains information about Telegram Passport data shared with the bot by the user. */ -class PassportData extends \Tii\Telepath\Type +class PassportData extends \Tii\Telepath\Types\Type { /** * Array with information about documents and other Telegram Passport elements that was shared with the bot diff --git a/src/Telegram/PassportElementError.php b/src/Telegram/PassportElementError.php index bad562e..d5492f5 100644 --- a/src/Telegram/PassportElementError.php +++ b/src/Telegram/PassportElementError.php @@ -9,7 +9,7 @@ /** * This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of: */ -abstract class PassportElementError extends \Tii\Telepath\Type +abstract class PassportElementError extends \Tii\Telepath\Types\Type { /** Error source */ public string $source; diff --git a/src/Telegram/PassportFile.php b/src/Telegram/PassportFile.php index 5b81475..448db67 100644 --- a/src/Telegram/PassportFile.php +++ b/src/Telegram/PassportFile.php @@ -9,7 +9,7 @@ /** * This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB. */ -class PassportFile extends \Tii\Telepath\Type +class PassportFile extends \Tii\Telepath\Types\Type { /** Identifier for this file, which can be used to download or reuse the file */ public string $file_id; diff --git a/src/Telegram/PhotoSize.php b/src/Telegram/PhotoSize.php index a4b17b3..8d1b085 100644 --- a/src/Telegram/PhotoSize.php +++ b/src/Telegram/PhotoSize.php @@ -9,7 +9,7 @@ /** * This object represents one size of a photo or a file / sticker thumbnail. */ -class PhotoSize extends \Tii\Telepath\Type +class PhotoSize extends \Tii\Telepath\Types\Type { /** Identifier for this file, which can be used to download or reuse the file */ public string $file_id; diff --git a/src/Telegram/Poll.php b/src/Telegram/Poll.php index 8570b6b..486e04a 100644 --- a/src/Telegram/Poll.php +++ b/src/Telegram/Poll.php @@ -9,7 +9,7 @@ /** * This object contains information about a poll. */ -class Poll extends \Tii\Telepath\Type +class Poll extends \Tii\Telepath\Types\Type { /** Unique poll identifier */ public string $id; diff --git a/src/Telegram/PollAnswer.php b/src/Telegram/PollAnswer.php index 1b71a63..0f0f62a 100644 --- a/src/Telegram/PollAnswer.php +++ b/src/Telegram/PollAnswer.php @@ -9,7 +9,7 @@ /** * This object represents an answer of a user in a non-anonymous poll. */ -class PollAnswer extends \Tii\Telepath\Type +class PollAnswer extends \Tii\Telepath\Types\Type { /** Unique poll identifier */ public string $poll_id; diff --git a/src/Telegram/PollOption.php b/src/Telegram/PollOption.php index 4584ec5..6f845bd 100644 --- a/src/Telegram/PollOption.php +++ b/src/Telegram/PollOption.php @@ -9,7 +9,7 @@ /** * This object contains information about one answer option in a poll. */ -class PollOption extends \Tii\Telepath\Type +class PollOption extends \Tii\Telepath\Types\Type { /** Option text, 1-100 characters */ public string $text; diff --git a/src/Telegram/PreCheckoutQuery.php b/src/Telegram/PreCheckoutQuery.php index 0a9186c..7abde04 100644 --- a/src/Telegram/PreCheckoutQuery.php +++ b/src/Telegram/PreCheckoutQuery.php @@ -9,7 +9,7 @@ /** * This object contains information about an incoming pre-checkout query. */ -class PreCheckoutQuery extends \Tii\Telepath\Type +class PreCheckoutQuery extends \Tii\Telepath\Types\Type { /** Unique query identifier */ public string $id; diff --git a/src/Telegram/ProximityAlertTriggered.php b/src/Telegram/ProximityAlertTriggered.php index d700735..27ccc3f 100644 --- a/src/Telegram/ProximityAlertTriggered.php +++ b/src/Telegram/ProximityAlertTriggered.php @@ -9,7 +9,7 @@ /** * This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. */ -class ProximityAlertTriggered extends \Tii\Telepath\Type +class ProximityAlertTriggered extends \Tii\Telepath\Types\Type { /** User that triggered the alert */ public User $traveler; diff --git a/src/Telegram/ReplyKeyboardMarkup.php b/src/Telegram/ReplyKeyboardMarkup.php index b023e50..5597742 100644 --- a/src/Telegram/ReplyKeyboardMarkup.php +++ b/src/Telegram/ReplyKeyboardMarkup.php @@ -9,7 +9,7 @@ /** * This object represents a custom keyboard with reply options (see Introduction to bots for details and examples). */ -class ReplyKeyboardMarkup extends \Tii\Telepath\Type +class ReplyKeyboardMarkup extends \Tii\Telepath\Types\Type { /** * Array of button rows, each represented by an Array of KeyboardButton objects diff --git a/src/Telegram/ReplyKeyboardRemove.php b/src/Telegram/ReplyKeyboardRemove.php index 09b9229..b2cef16 100644 --- a/src/Telegram/ReplyKeyboardRemove.php +++ b/src/Telegram/ReplyKeyboardRemove.php @@ -9,7 +9,7 @@ /** * Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup). */ -class ReplyKeyboardRemove extends \Tii\Telepath\Type +class ReplyKeyboardRemove extends \Tii\Telepath\Types\Type { /** Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup) */ public bool $remove_keyboard; diff --git a/src/Telegram/ResponseParameters.php b/src/Telegram/ResponseParameters.php index 0aec251..e7a8b83 100644 --- a/src/Telegram/ResponseParameters.php +++ b/src/Telegram/ResponseParameters.php @@ -9,7 +9,7 @@ /** * Contains information about why a request was unsuccessful. */ -class ResponseParameters extends \Tii\Telepath\Type +class ResponseParameters extends \Tii\Telepath\Types\Type { /** Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier. */ public ?int $migrate_to_chat_id = null; diff --git a/src/Telegram/SentWebAppMessage.php b/src/Telegram/SentWebAppMessage.php index 1447879..a903b50 100644 --- a/src/Telegram/SentWebAppMessage.php +++ b/src/Telegram/SentWebAppMessage.php @@ -9,7 +9,7 @@ /** * Contains information about an inline message sent by a Web App on behalf of a user. */ -class SentWebAppMessage extends \Tii\Telepath\Type +class SentWebAppMessage extends \Tii\Telepath\Types\Type { /** Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. */ public ?string $inline_message_id = null; diff --git a/src/Telegram/ShippingAddress.php b/src/Telegram/ShippingAddress.php index 627fbd3..1db5c48 100644 --- a/src/Telegram/ShippingAddress.php +++ b/src/Telegram/ShippingAddress.php @@ -9,7 +9,7 @@ /** * This object represents a shipping address. */ -class ShippingAddress extends \Tii\Telepath\Type +class ShippingAddress extends \Tii\Telepath\Types\Type { /** ISO 3166-1 alpha-2 country code */ public string $country_code; diff --git a/src/Telegram/ShippingOption.php b/src/Telegram/ShippingOption.php index 1c298b6..91ab461 100644 --- a/src/Telegram/ShippingOption.php +++ b/src/Telegram/ShippingOption.php @@ -9,7 +9,7 @@ /** * This object represents one shipping option. */ -class ShippingOption extends \Tii\Telepath\Type +class ShippingOption extends \Tii\Telepath\Types\Type { /** Shipping option identifier */ public string $id; diff --git a/src/Telegram/ShippingQuery.php b/src/Telegram/ShippingQuery.php index 444af1d..048c96e 100644 --- a/src/Telegram/ShippingQuery.php +++ b/src/Telegram/ShippingQuery.php @@ -9,7 +9,7 @@ /** * This object contains information about an incoming shipping query. */ -class ShippingQuery extends \Tii\Telepath\Type +class ShippingQuery extends \Tii\Telepath\Types\Type { /** Unique query identifier */ public string $id; diff --git a/src/Telegram/Sticker.php b/src/Telegram/Sticker.php index ccb7400..906136d 100644 --- a/src/Telegram/Sticker.php +++ b/src/Telegram/Sticker.php @@ -9,7 +9,7 @@ /** * This object represents a sticker. */ -class Sticker extends \Tii\Telepath\Type +class Sticker extends \Tii\Telepath\Types\Type { /** Identifier for this file, which can be used to download or reuse the file */ public string $file_id; diff --git a/src/Telegram/StickerSet.php b/src/Telegram/StickerSet.php index 9bed612..9e170d6 100644 --- a/src/Telegram/StickerSet.php +++ b/src/Telegram/StickerSet.php @@ -9,7 +9,7 @@ /** * This object represents a sticker set. */ -class StickerSet extends \Tii\Telepath\Type +class StickerSet extends \Tii\Telepath\Types\Type { /** Sticker set name */ public string $name; diff --git a/src/Telegram/SuccessfulPayment.php b/src/Telegram/SuccessfulPayment.php index 9b48e9e..2bc6029 100644 --- a/src/Telegram/SuccessfulPayment.php +++ b/src/Telegram/SuccessfulPayment.php @@ -9,7 +9,7 @@ /** * This object contains basic information about a successful payment. */ -class SuccessfulPayment extends \Tii\Telepath\Type +class SuccessfulPayment extends \Tii\Telepath\Types\Type { /** Three-letter ISO 4217 currency code */ public string $currency; diff --git a/src/Telegram/Update.php b/src/Telegram/Update.php index bbc8eff..bb0e685 100644 --- a/src/Telegram/Update.php +++ b/src/Telegram/Update.php @@ -9,7 +9,7 @@ /** * This object represents an incoming update.At most one of the optional parameters can be present in any given update. */ -class Update extends \Tii\Telepath\Type +class Update extends \Tii\Telepath\Types\Type { /** The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially. */ public int $update_id; diff --git a/src/Telegram/User.php b/src/Telegram/User.php index ffee231..36f6fa4 100644 --- a/src/Telegram/User.php +++ b/src/Telegram/User.php @@ -9,7 +9,7 @@ /** * This object represents a Telegram user or bot. */ -class User extends \Tii\Telepath\Type +class User extends \Tii\Telepath\Types\Type { /** Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. */ public int $id; diff --git a/src/Telegram/UserProfilePhotos.php b/src/Telegram/UserProfilePhotos.php index 5a5a684..93dfe15 100644 --- a/src/Telegram/UserProfilePhotos.php +++ b/src/Telegram/UserProfilePhotos.php @@ -9,7 +9,7 @@ /** * This object represent a user's profile pictures. */ -class UserProfilePhotos extends \Tii\Telepath\Type +class UserProfilePhotos extends \Tii\Telepath\Types\Type { /** Total number of profile pictures the target user has */ public int $total_count; diff --git a/src/Telegram/Venue.php b/src/Telegram/Venue.php index 47e434c..99b02d9 100644 --- a/src/Telegram/Venue.php +++ b/src/Telegram/Venue.php @@ -9,7 +9,7 @@ /** * This object represents a venue. */ -class Venue extends \Tii\Telepath\Type +class Venue extends \Tii\Telepath\Types\Type { /** Venue location. Can't be a live location */ public Location $location; diff --git a/src/Telegram/Video.php b/src/Telegram/Video.php index 7615444..dfd7f26 100644 --- a/src/Telegram/Video.php +++ b/src/Telegram/Video.php @@ -9,7 +9,7 @@ /** * This object represents a video file. */ -class Video extends \Tii\Telepath\Type +class Video extends \Tii\Telepath\Types\Type { /** Identifier for this file, which can be used to download or reuse the file */ public string $file_id; diff --git a/src/Telegram/VideoChatEnded.php b/src/Telegram/VideoChatEnded.php index 04970d7..4caa4d3 100644 --- a/src/Telegram/VideoChatEnded.php +++ b/src/Telegram/VideoChatEnded.php @@ -9,7 +9,7 @@ /** * This object represents a service message about a video chat ended in the chat. */ -class VideoChatEnded extends \Tii\Telepath\Type +class VideoChatEnded extends \Tii\Telepath\Types\Type { /** Video chat duration in seconds */ public int $duration; diff --git a/src/Telegram/VideoChatParticipantsInvited.php b/src/Telegram/VideoChatParticipantsInvited.php index adf0047..b0ccbda 100644 --- a/src/Telegram/VideoChatParticipantsInvited.php +++ b/src/Telegram/VideoChatParticipantsInvited.php @@ -9,7 +9,7 @@ /** * This object represents a service message about new members invited to a video chat. */ -class VideoChatParticipantsInvited extends \Tii\Telepath\Type +class VideoChatParticipantsInvited extends \Tii\Telepath\Types\Type { /** * New members that were invited to the video chat diff --git a/src/Telegram/VideoChatScheduled.php b/src/Telegram/VideoChatScheduled.php index 7c9b88a..4e6b69a 100644 --- a/src/Telegram/VideoChatScheduled.php +++ b/src/Telegram/VideoChatScheduled.php @@ -9,7 +9,7 @@ /** * This object represents a service message about a video chat scheduled in the chat. */ -class VideoChatScheduled extends \Tii\Telepath\Type +class VideoChatScheduled extends \Tii\Telepath\Types\Type { /** Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator */ public int $start_date; diff --git a/src/Telegram/VideoChatStarted.php b/src/Telegram/VideoChatStarted.php index 0f3ffc8..ffb9e4f 100644 --- a/src/Telegram/VideoChatStarted.php +++ b/src/Telegram/VideoChatStarted.php @@ -9,7 +9,7 @@ /** * This object represents a service message about a video chat started in the chat. Currently holds no information. */ -class VideoChatStarted extends \Tii\Telepath\Type +class VideoChatStarted extends \Tii\Telepath\Types\Type { public static function make(): static { diff --git a/src/Telegram/VideoNote.php b/src/Telegram/VideoNote.php index 94e661c..fc9c1ed 100644 --- a/src/Telegram/VideoNote.php +++ b/src/Telegram/VideoNote.php @@ -9,7 +9,7 @@ /** * This object represents a video message (available in Telegram apps as of v.4.0). */ -class VideoNote extends \Tii\Telepath\Type +class VideoNote extends \Tii\Telepath\Types\Type { /** Identifier for this file, which can be used to download or reuse the file */ public string $file_id; diff --git a/src/Telegram/Voice.php b/src/Telegram/Voice.php index c7f556f..d42acba 100644 --- a/src/Telegram/Voice.php +++ b/src/Telegram/Voice.php @@ -9,7 +9,7 @@ /** * This object represents a voice note. */ -class Voice extends \Tii\Telepath\Type +class Voice extends \Tii\Telepath\Types\Type { /** Identifier for this file, which can be used to download or reuse the file */ public string $file_id; diff --git a/src/Telegram/WebAppData.php b/src/Telegram/WebAppData.php index 6e2ebc6..f35df1f 100644 --- a/src/Telegram/WebAppData.php +++ b/src/Telegram/WebAppData.php @@ -9,7 +9,7 @@ /** * Contains data sent from a Web App to the bot. */ -class WebAppData extends \Tii\Telepath\Type +class WebAppData extends \Tii\Telepath\Types\Type { /** The data. Be aware that a bad client can send arbitrary data in this field. */ public string $data; diff --git a/src/Telegram/WebAppInfo.php b/src/Telegram/WebAppInfo.php index a53a2d2..143f368 100644 --- a/src/Telegram/WebAppInfo.php +++ b/src/Telegram/WebAppInfo.php @@ -9,7 +9,7 @@ /** * Contains information about a Web App. */ -class WebAppInfo extends \Tii\Telepath\Type +class WebAppInfo extends \Tii\Telepath\Types\Type { /** An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps */ public string $url; diff --git a/src/Telegram/WebhookInfo.php b/src/Telegram/WebhookInfo.php index de9975f..99bcc3a 100644 --- a/src/Telegram/WebhookInfo.php +++ b/src/Telegram/WebhookInfo.php @@ -9,7 +9,7 @@ /** * Contains information about the current status of a webhook. */ -class WebhookInfo extends \Tii\Telepath\Type +class WebhookInfo extends \Tii\Telepath\Types\Type { /** Webhook URL, may be empty if webhook is not set up */ public string $url; diff --git a/src/InputFile.php b/src/Types/InputFile.php similarity index 98% rename from src/InputFile.php rename to src/Types/InputFile.php index 0c16052..8120181 100644 --- a/src/InputFile.php +++ b/src/Types/InputFile.php @@ -1,6 +1,6 @@