Commit 229b25a3 authored by Marco Boretto's avatar Marco Boretto

Merge pull request #119 from jacklul/feature/newchatphoto

Add new_chat_photo command
parents eeef5dad 067f8ec7
<?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;
......
......@@ -456,6 +456,7 @@ class Telegram
'group_chat_created',
'left_chat_participant',
'new_chat_participant',
'new_chat_photo',
'new_chat_title',
'supergroup_chat_created',
])) {
......
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