Commit b2c5281e authored by Jack'lul's avatar Jack'lul

Add handler command for pinned_message

parent 706fc120
<?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;
/**
* Pinned message command
*/
class PinnedmessageCommand extends SystemCommand
{
/**
* @var string
*/
protected $name = 'Pinnedmessage';
/**
* @var string
*/
protected $description = 'Message was pinned';
/**
* @var string
*/
protected $version = '1.0.0';
/**
* Execute command
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public function execute()
{
//$message = $this->getMessage();
//$pinned_message = $message->getPinnedMessage();
return parent::execute();
}
}
...@@ -419,6 +419,7 @@ class Telegram ...@@ -419,6 +419,7 @@ class Telegram
'new_chat_member', 'new_chat_member',
'new_chat_photo', 'new_chat_photo',
'new_chat_title', 'new_chat_title',
'pinned_message',
'supergroup_chat_created', 'supergroup_chat_created',
], true) ], true)
) { ) {
......
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