telegram->makeKeyboard($buttons); $this->reply('Шо?', $keyboard); } /** * Gets awesome advice and sends message with it to current chat * * @return void */ protected function actionAdvice() { $fga = new OmaeUrl('http://ubilling.net.ua/fga/api/random/?lang=ua'); $advice = $fga->response(); $advice = json_decode($advice, true); $advice = $advice['text']; $this->reply($advice); } /** * Gets awasome advice in russian * * @return void */ protected function actionNahuy() { $this->replyTo('Нахуй иди, вот тебе совет.'); } }