{"action":"opened","issue":{"url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/87","repository_url":"https://api.github.com/repos/yagop/node-telegram-bot-api","labels_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/87/comments","events_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/87/events","html_url":"https://github.com/yagop/node-telegram-bot-api/issues/87","id":138909565,"number":87,"title":"I'm trying inline bot label:help wanted","user":{"login":"coredox","id":16400646,"avatar_url":"https://avatars.githubusercontent.com/u/16400646?v=3","gravatar_id":"","url":"https://api.github.com/users/coredox","html_url":"https://github.com/coredox","followers_url":"https://api.github.com/users/coredox/followers","following_url":"https://api.github.com/users/coredox/following{/other_user}","gists_url":"https://api.github.com/users/coredox/gists{/gist_id}","starred_url":"https://api.github.com/users/coredox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coredox/subscriptions","organizations_url":"https://api.github.com/users/coredox/orgs","repos_url":"https://api.github.com/users/coredox/repos","events_url":"https://api.github.com/users/coredox/events{/privacy}","received_events_url":"https://api.github.com/users/coredox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-07T07:46:38Z","updated_at":"2016-03-07T07:46:38Z","closed_at":null,"body":"```\r\nvar TelegramBot = require('node-telegram-bot-api');\r\nvar figlet = require('figlet');\r\n\r\nvar token = 'did it correctly';\r\n// See https://developers.openshift.com/en/node-js-environment-variables.html\r\nvar port = process.env.OPENSHIFT_NODEJS_PORT;\r\nvar host = process.env.OPENSHIFT_NODEJS_IP;\r\nvar domain = process.env.OPENSHIFT_APP_DNS;\r\n\r\nvar bot = new TelegramBot(token, {webHook: {port: port, host: host}});\r\n// OpenShift enroutes :443 request to OPENSHIFT_NODEJS_PORT\r\nbot.setWebHook(domain+':443/bot'+token);\r\n\r\nbot.onText(/\\/echo (.+)/, function (msg, match) {\r\n  var chatId = msg.chat.id;\r\n  var resp = match[1];\r\n  bot.sendMessage(chatId, resp);\r\n});\r\n\r\nbot.on('inline_query', function(query) {\r\n  toSend = [];\r\n\r\n  for (var i = 1; i < 4; i++) {\r\n\r\n    toSend.push({\r\n      type: 'article',\r\n      id: i,\r\n      title: 'fan',\r\n      message_text : 'something'\r\n    });\r\n  }\r\n  bot.answerInlineQuery(query.id, toSend);\r\n});\r\n\r\n```\r\n\r\nInline query isn't working, is the syntax correct? or there is something wrong with openshift?\r\n\r\nand the bot is working fine with /echo in personal chat with bot."}}