Moved InputMessageContent
This commit is contained in:
parent
dfb812237b
commit
fb2a06024d
17 changed files with 23 additions and 18 deletions
|
@ -8,7 +8,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
|
||||
class InlineQueryResultArticle extends InlineQueryResult implements ObjectTypeInterface
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\MessageEntity;
|
||||
|
||||
class InlineQueryResultAudio extends InlineQueryResult implements ObjectTypeInterface
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
|
||||
class InlineQueryResultContact extends InlineQueryResult implements ObjectTypeInterface
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\InputMessageContent\InputVenueMessageContent;
|
||||
use TgBotLib\Objects\MessageEntity;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\MessageEntity;
|
||||
|
||||
class InlineQueryResultGif extends InlineQueryResult implements ObjectTypeInterface
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\InputMessageContent\InputContactMessageContent;
|
||||
|
||||
class InlineQueryResultLocation extends InlineQueryResult implements ObjectTypeInterface
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\InputMessageContent\InputVenueMessageContent;
|
||||
use TgBotLib\Objects\MessageEntity;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\InputMessageContent\InputTextMessageContent;
|
||||
use TgBotLib\Objects\MessageEntity;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\InputMessageContent\InputVenueMessageContent;
|
||||
|
||||
class InlineQueryResultVenue extends InlineQueryResult implements ObjectTypeInterface
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\MessageEntity;
|
||||
|
||||
class InlineQueryResultVideo extends InlineQueryResult implements ObjectTypeInterface
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\Inline\InlineKeyboardMarkup;
|
||||
use TgBotLib\Objects\Inline\InlineQueryResult;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\MessageEntity;
|
||||
|
||||
class InlineQueryResultVoice extends InlineQueryResult implements ObjectTypeInterface
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Objects;
|
||||
namespace TgBotLib\Objects\Inline;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use TgBotLib\Enums\Types\InputMessageContentType;
|
||||
|
@ -32,8 +32,13 @@
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function fromArray(array $data): InputMessageContent
|
||||
public static function fromArray(?array $data): ?InputMessageContent
|
||||
{
|
||||
if($data === null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if(isset($data['message_text']))
|
||||
{
|
||||
return InputTextMessageContent::fromArray($data);
|
|
@ -9,7 +9,7 @@
|
|||
use TgBotLib\Classes\Validate;
|
||||
use TgBotLib\Enums\Types\InputMessageContentType;
|
||||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
|
||||
class InputContactMessageContent extends InputMessageContent implements ObjectTypeInterface
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
use TgBotLib\Classes\Validate;
|
||||
use TgBotLib\Enums\Types\InputMessageContentType;
|
||||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\LabeledPrice;
|
||||
|
||||
class InputInvoiceMessageContent extends InputMessageContent implements ObjectTypeInterface
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
use TgBotLib\Classes\Validate;
|
||||
use TgBotLib\Enums\Types\InputMessageContentType;
|
||||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
|
||||
class InputLocationMessageContent extends InputMessageContent implements ObjectTypeInterface
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
use TgBotLib\Classes\Validate;
|
||||
use TgBotLib\Enums\Types\InputMessageContentType;
|
||||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
use TgBotLib\Objects\MessageEntity;
|
||||
|
||||
class InputTextMessageContent extends InputMessageContent implements ObjectTypeInterface
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
use TgBotLib\Enums\Types\InputMessageContentType;
|
||||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
use TgBotLib\Objects\InputMessageContent;
|
||||
use TgBotLib\Objects\Inline\InputMessageContent;
|
||||
|
||||
class InputVenueMessageContent extends InputMessageContent implements ObjectTypeInterface
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue