{"action":"opened","issue":{"url":"https://api.github.com/repos/zhukov/webogram/issues/1057","repository_url":"https://api.github.com/repos/zhukov/webogram","labels_url":"https://api.github.com/repos/zhukov/webogram/issues/1057/labels{/name}","comments_url":"https://api.github.com/repos/zhukov/webogram/issues/1057/comments","events_url":"https://api.github.com/repos/zhukov/webogram/issues/1057/events","html_url":"https://github.com/zhukov/webogram/issues/1057","id":132611165,"number":1057,"title":"messages.sendBroadcast is not working","user":{"login":"khalilst","id":9103966,"avatar_url":"https://avatars.githubusercontent.com/u/9103966?v=3","gravatar_id":"","url":"https://api.github.com/users/khalilst","html_url":"https://github.com/khalilst","followers_url":"https://api.github.com/users/khalilst/followers","following_url":"https://api.github.com/users/khalilst/following{/other_user}","gists_url":"https://api.github.com/users/khalilst/gists{/gist_id}","starred_url":"https://api.github.com/users/khalilst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khalilst/subscriptions","organizations_url":"https://api.github.com/users/khalilst/orgs","repos_url":"https://api.github.com/users/khalilst/repos","events_url":"https://api.github.com/users/khalilst/events{/privacy}","received_events_url":"https://api.github.com/users/khalilst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-10T05:34:04Z","updated_at":"2016-02-10T05:34:04Z","closed_at":null,"body":"Hello\r\nI cloned Webogram and did some changes to its source code to implement messages.sendBroadcast.\r\nThis is the code:\r\n\r\n        apiPromise = MtpApiManager.invokeApi('messages.sendBroadcast', {\r\n          contacts: list,\r\n          random_id: randomIDs,\r\n          message: text,\r\n          media: { '_': 'inputMediaEmpty' }\r\n        }, sentRequestOptions);\r\n\r\nThere's no error in client side.\r\nBut after sendubg message, an error dialog appears and says:\r\n    \r\n    One of the params is missing or invalid.\r\n\r\nAnd Technical info for this error is:\r\n\r\n```\r\n\r\nMethod: messages.sendBroadcast\r\nUrl: N/A\r\nResult: {\"_\":\"rpc_error\",\"error_code\":400,\"error_message\":\"UNKNOWN\"}\r\nStack: mtpInvokeApi/rejectPromise@http://localhost:8000/app/js/lib/mtproto_wrapper.js:136:95\r\nmtpInvokeApi/performRequest/<@http://localhost:8000/app/js/lib/mtproto_wrapper.js:246:13\r\nprocessQueue@http://localhost:8000/app/vendor/angular/angular.js:14745:28\r\nscheduleProcessQueue/<@http://localhost:8000/app/vendor/angular/angular.js:14761:27\r\n$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:8000/app/vendor/angular/angular.js:15989:16\r\n$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:8000/app/vendor/angular/angular.js:15800:15\r\n$RootScopeProvider/this.$get</Scope.prototype.$evalAsync/<@http://localhost:8000/app/vendor/angular/angular.js:16028:15\r\ncompleteOutstandingRequest@http://localhost:8000/app/vendor/angular/angular.js:5507:7\r\nBrowser/self.defer/timeoutId<@http://localhost:8000/app/vendor/angular/angular.js:5784:7\r\nhandleMessage@http://localhost:8000/app/js/lib/polyfill.js:119:9\r\n\r\n```\r\nWhats wrong with this code? What's the UNKNOWN error?!\r\nAny help appreciated in advance"}}