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 UnbanChatMemberMethod.
*
* @see https://core.telegram.org/bots/api#unbanchatmember
*/
class UnbanChatMemberMethod
{
use ChatIdVariableTrait;
use UserIdVariableTrait;
* @param int|string $chatId
* @param int $userId
* @return UnbanChatMemberMethod
public static function create($chatId, int $userId): UnbanChatMemberMethod
$instance = new static();
$instance->chatId = $chatId;
$instance->userId = $userId;
return $instance;
}