original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: \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.
docstring_tokens: \ brief Call a single api method using another chat_id without changing the current one .