Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @param CallbackQuery $query
- * @return \Longman\TelegramBot\Entities\ServerResponse
- * @throws \Longman\TelegramBot\Exception\TelegramException
- */
- public function answer(CallbackQuery $query) {
- $callback_data = $query->getData();
- $chat_id = $query->getMessage()->getChat()->getId();
- $user_id = $query->getFrom()->getId();
- $pdo = DB::getPdo();
- if (strpos($callback_data, 'feedback_') !== 0) {
- return Request::emptyResponse();
- }
- $current = substr($callback_data, strlen('feedback_')); // Feedback ID
- $conversation = new Conversation($user_id, $chat_id, $this->getName());
- $conversation->notes['state'] = 'message';
- $conversation->update();
- /**
- * TODO
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement