{"action":"created","issue":{"url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/173","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/173/labels{/name}","comments_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/173/comments","events_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/173/events","html_url":"https://github.com/yagop/node-telegram-bot-api/issues/173","id":166578907,"number":173,"title":"Unhandled rejection error: 400","user":{"login":"Tpona","id":6121024,"avatar_url":"https://avatars.githubusercontent.com/u/6121024?v=3","gravatar_id":"","url":"https://api.github.com/users/Tpona","html_url":"https://github.com/Tpona","followers_url":"https://api.github.com/users/Tpona/followers","following_url":"https://api.github.com/users/Tpona/following{/other_user}","gists_url":"https://api.github.com/users/Tpona/gists{/gist_id}","starred_url":"https://api.github.com/users/Tpona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tpona/subscriptions","organizations_url":"https://api.github.com/users/Tpona/orgs","repos_url":"https://api.github.com/users/Tpona/repos","events_url":"https://api.github.com/users/Tpona/events{/privacy}","received_events_url":"https://api.github.com/users/Tpona/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-20T13:18:09Z","updated_at":"2016-08-29T10:43:08Z","closed_at":null,"body":"Whrn i transfer created bot object to another module/object, then i get this error\r\n\r\n`bot.on('message', function (msg) {\r\n    var chatId = msg.chat.id;\r\n    var from = msg.from;\r\n    console.log(from);\r\n\r\n    var member = new Member(from);\r\n    member.on('ready', () => {\r\n\r\n        bot.sendMessage(from.id, member.firstName+' You say: '+msg.text); // this works fine\r\n        member.update(bot, msg); // this not working, inside the same code that line above \r\n        member.save();\r\n    })\r\n});\r\n`\r\n\r\n\r\n> Unhandled rejection Error: 400 {\"ok\":false,\"error_code\":400,\"description\":\"Bad R\r\nequest: Message text is empty\"}\r\n    at \\bot\\telegram\\node_modules\\node-telegram-b\r\not-api\\src\\telegram.js:136:15\r\n    at tryOnImmediate (timers.js:543:15)\r\n    at processImmediate [as _immediateCallback] (timers.js:523:5)\r\nFrom previous event:\r\n    at TelegramBot._request (\\bot\\telegram\\node_m\r\nodules\\node-telegram-bot-api\\src\\telegram.js:134:6)\r\n    at TelegramBot.sendMessage (\\bot\\telegram\\nod\r\ne_modules\\node-telegram-bot-api\\src\\telegram.js:235:15)\r\n    at RootFSM.greeting (\\bot\\telegram\\fsm\\root.j\r\ns:26:22)\r\n    at eval (eval at update (\\bot\\telegram\\member\r\n.js:152:27), <anonymous>:1:5)\r\n    at Member.update (\\bot\\telegram\\member.js:152\r\n:3)\r\n    at Member.member.on (\\bot\\telegram\\app4.js:36\r\n:16)\r\n    at emitNone (events.js:86:13)\r\n    at Member.emit (events.js:185:7)\r\n    at Member.load.then.resolve (\\bot\\telegram\\me\r\nmber.js:20:9)\r\n\r\nWhat problem in this code?\r\nThx"},"comment":{"url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/comments/243091574","html_url":"https://github.com/yagop/node-telegram-bot-api/issues/173#issuecomment-243091574","issue_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/173","id":243091574,"user":{"login":"GochoMugo","id":4707579,"avatar_url":"https://avatars.githubusercontent.com/u/4707579?v=3","gravatar_id":"","url":"https://api.github.com/users/GochoMugo","html_url":"https://github.com/GochoMugo","followers_url":"https://api.github.com/users/GochoMugo/followers","following_url":"https://api.github.com/users/GochoMugo/following{/other_user}","gists_url":"https://api.github.com/users/GochoMugo/gists{/gist_id}","starred_url":"https://api.github.com/users/GochoMugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GochoMugo/subscriptions","organizations_url":"https://api.github.com/users/GochoMugo/orgs","repos_url":"https://api.github.com/users/GochoMugo/repos","events_url":"https://api.github.com/users/GochoMugo/events{/privacy}","received_events_url":"https://api.github.com/users/GochoMugo/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T10:43:07Z","updated_at":"2016-08-29T10:43:07Z","body":"@Tpona you could just close the issue yourself."}}
{"actor":{"display_login":"GochoMugo"}}