for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TgBotApi\BotApiBase\Method;
use TgBotApi\BotApiBase\Method\Traits\ChatIdVariableTrait;
use TgBotApi\BotApiBase\Method\Traits\UserIdVariableTrait;
/**
* Class GetChatMemberMethod.
*
* @see https://core.telegram.org/bots/api#getchatmember
*/
class GetChatMemberMethod
{
use ChatIdVariableTrait;
use UserIdVariableTrait;
* @param int|string $chatId
* @param int $userId
* @return GetChatMemberMethod
public static function create($chatId, int $userId): GetChatMemberMethod
$instance = new self();
$instance->chatId = $chatId;
$instance->userId = $userId;
return $instance;
}