public function c_casinowar() { if ($this->Message->Chat->type == ChatType::Individual) { $Move = new PlayerMove(PlayerMove::StartGame); } else { $Move = new PlayerMove(PlayerMove::JoinGame); } $bet = $this->isParam() ? $this->getAllParams() : 0; return Telegram::getResponse($this->db, $this->Message, $Move, $bet); }
public function c_cwstart() { $bet = $this->isParam() ? $this->getAllParams() : 0; $Move = new PlayerMove(PlayerMove::StartGame); return Telegram::getResponse($this->db, $this->Message, $Move, $bet); }
public function c_war() { $Move = new PlayerMove(PlayerMove::War); return Telegram::getResponse($this->db, $this->Message, $Move); }