for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Greenplugin\TelegramBot\Method;
use Greenplugin\TelegramBot\Method\Traits\EditMessageVariablesTrait;
use Greenplugin\TelegramBot\Method\Traits\FillFromArrayTrait;
/**
* Class StopMessageLiveLocationType.
*
* @see https://core.telegram.org/bots/api#stopmessagelivelocation
*/
class StopMessageLiveLocationMethod
{
use FillFromArrayTrait;
use EditMessageVariablesTrait;
* StopMessageLiveLocationMethod constructor.
* @param array|null $data
* @throws \Greenplugin\TelegramBot\Exception\BadArgumentException
public function __construct(array $data = null)
if ($data) {
$this->fill($data);
}
* @param int|string $chatId
* @return StopMessageLiveLocationMethod
public static function create($chatId, array $data = null): StopMessageLiveLocationMethod
$method = new self($data);
$method->chatId = $chatId;
return $method;
* @param string $inlineMessageId
public static function createInline(string $inlineMessageId, array $data = null): StopMessageLiveLocationMethod
$method->inlineMessageId = $inlineMessageId;