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\ChatIdVariableTrait;
use Greenplugin\TelegramBot\Type\InputFileType;
/**
* Class SetChatPhotoMethod.
*
* @see https://core.telegram.org/bots/api#setchatphoto
*/
class SetChatPhotoMethod
{
use ChatIdVariableTrait;
* New chat photo, uploaded using multipart/form-data.
* @var InputFileType
public $photo;
* SetChatPhotoMethod constructor.
* @param int|string $chatId
* @param InputFileType $photo
public function __construct($chatId, InputFileType $photo)
$this->chatId = $chatId;
$this->photo = $photo;
}