Commit 59cd92e8 authored by Jack'lul's avatar Jack'lul

Added new_chat_photo handler

parent 999ee2e7
<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\TelegramBot\Commands\SystemCommands;
use Longman\TelegramBot\Commands\SystemCommand;
/**
* New chat photo command
*/
class NewchatphotoCommand extends SystemCommand
{
/**#@+
* {@inheritdoc}
*/
protected $name = 'Newchatphoto';
protected $description = 'New chat Photo';
protected $version = '1.0.1';
/**#@-*/
/**
* {@inheritdoc}
*/
/*public function execute()
{
//$message = $this->getMessage();
//$new_chat_photo = $message->getNewChatPhoto();
}*/
}
......@@ -205,6 +205,7 @@ class Message extends Entity
}
}
$this->new_chat_photo = $photos;
$this->type = 'new_chat_photo';
}
$this->delete_chat_photo = isset($data['delete_chat_photo']) ? $data['delete_chat_photo'] : null;
......
......@@ -457,6 +457,7 @@ class Telegram
'left_chat_participant',
'new_chat_participant',
'new_chat_title',
'new_chat_photo',
'supergroup_chat_created',
])) {
$command = $this->getCommandFromType($type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment