public function main() { 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 main() { $Move = new PlayerMove(PlayerMove::Stand); return Telegram::getResponse($this->db, $this->Message, $Move); }
public function main() { $bet = $this->isParam() ? $this->getAllParams() : 0; $Move = new PlayerMove(PlayerMove::StartGame); return Telegram::getResponse($this->db, $this->Message, $Move, $bet); }