public function withChatId($chat_id, $method, ...$param)
    {
        $last_chat = $this->chat_id;
        $this->chat_id = $chat_id;
        $value = $this->$method(...$param);
        $this->chat_id = $last_chat;

        return $value;
    }
public function withChatId($chat_id, $method, ...$param)
    {
        $last_chat = $this->chat_id;
        $this->chat_id = $chat_id;
        $value = $this->$method(...$param);
        $this->chat_id = $last_chat;

        return $value;
    }
public function withChatId ( $ chat_id , $ method , ... $ param ) { $ last_chat = $ this -> chat_id ; $ this -> chat_id = $ chat_id ; $ value = $ this -> $ method ( ... $ param ) ; $ this -> chat_id = $ last_chat ; return $ value ; }
\brief Call a single api method using another chat_id without changing the current one.
@param string|int $chat_id API method target chat_id.
@param string $method Bot API method name.
@param mixed ...$param Parameters for the API method.
@return mixed The return value of the API method.
\ brief Call a single api method using another chat_id without changing the current one .