trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
...
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
/**
/**
* Edited message command
* Edited message command
*
* @todo Remove due to deprecation!
*/
*/
classEditedmessageCommandextendsSystemCommand
classEditedmessageCommandextendsSystemCommand
{
{
...
@@ -43,6 +45,8 @@ class EditedmessageCommand extends SystemCommand
...
@@ -43,6 +45,8 @@ class EditedmessageCommand extends SystemCommand
//$update = $this->getUpdate();
//$update = $this->getUpdate();
//$edited_message = $update->getEditedMessage();
//$edited_message = $update->getEditedMessage();
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
...
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
/**
/**
* Left chat member command
* Left chat member command
*
* @todo Remove due to deprecation!
*/
*/
classLeftchatmemberCommandextendsSystemCommand
classLeftchatmemberCommandextendsSystemCommand
{
{
...
@@ -43,6 +45,8 @@ class LeftchatmemberCommand extends SystemCommand
...
@@ -43,6 +45,8 @@ class LeftchatmemberCommand extends SystemCommand
//$message = $this->getMessage();
//$message = $this->getMessage();
//$member = $message->getLeftChatMember();
//$member = $message->getLeftChatMember();
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
...
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
/**
/**
* New chat members command
* New chat members command
*
* @todo Remove due to deprecation!
*/
*/
classNewchatmembersCommandextendsSystemCommand
classNewchatmembersCommandextendsSystemCommand
{
{
...
@@ -43,6 +45,8 @@ class NewchatmembersCommand extends SystemCommand
...
@@ -43,6 +45,8 @@ class NewchatmembersCommand extends SystemCommand
//$message = $this->getMessage();
//$message = $this->getMessage();
//$members = $message->getNewChatMembers();
//$members = $message->getNewChatMembers();
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
...
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
/**
/**
* New chat photo command
* New chat photo command
*
* @todo Remove due to deprecation!
*/
*/
classNewchatphotoCommandextendsSystemCommand
classNewchatphotoCommandextendsSystemCommand
{
{
...
@@ -43,6 +45,8 @@ class NewchatphotoCommand extends SystemCommand
...
@@ -43,6 +45,8 @@ class NewchatphotoCommand extends SystemCommand
//$message = $this->getMessage();
//$message = $this->getMessage();
//$new_chat_photo = $message->getNewChatPhoto();
//$new_chat_photo = $message->getNewChatPhoto();
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
...
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
/**
/**
* New chat title command
* New chat title command
*
* @todo Remove due to deprecation!
*/
*/
classNewchattitleCommandextendsSystemCommand
classNewchattitleCommandextendsSystemCommand
{
{
...
@@ -43,6 +45,8 @@ class NewchattitleCommand extends SystemCommand
...
@@ -43,6 +45,8 @@ class NewchattitleCommand extends SystemCommand
//$message = $this->getMessage();
//$message = $this->getMessage();
//$new_chat_title = $message->getNewChatTitle();
//$new_chat_title = $message->getNewChatTitle();
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
...
@@ -14,6 +14,8 @@ use Longman\TelegramBot\Commands\SystemCommand;
/**
/**
* Pinned message command
* Pinned message command
*
* @todo Remove due to deprecation!
*/
*/
classPinnedmessageCommandextendsSystemCommand
classPinnedmessageCommandextendsSystemCommand
{
{
...
@@ -43,6 +45,8 @@ class PinnedmessageCommand extends SystemCommand
...
@@ -43,6 +45,8 @@ class PinnedmessageCommand extends SystemCommand
//$message = $this->getMessage();
//$message = $this->getMessage();
//$pinned_message = $message->getPinnedMessage();
//$pinned_message = $message->getPinnedMessage();
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
@@ -15,6 +15,8 @@ use Longman\TelegramBot\Request;
...
@@ -15,6 +15,8 @@ use Longman\TelegramBot\Request;
/**
/**
* Start command
* Start command
*
* @todo Remove due to deprecation!
*/
*/
classStartCommandextendsSystemCommand
classStartCommandextendsSystemCommand
{
{
...
@@ -50,6 +52,8 @@ class StartCommand extends SystemCommand
...
@@ -50,6 +52,8 @@ class StartCommand extends SystemCommand
//$chat_id = $message->getChat()->getId();
//$chat_id = $message->getChat()->getId();
//$user_id = $message->getFrom()->getId();
//$user_id = $message->getFrom()->getId();
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);
trigger_error(__CLASS__.' is deprecated and will be removed and handled by '.GenericmessageCommand::class.' by default in a future release.',E_USER_DEPRECATED);