{"action":"opened","issue":{"url":"https://api.github.com/repos/ronaksoft/mtproto/issues/5","repository_url":"https://api.github.com/repos/ronaksoft/mtproto","labels_url":"https://api.github.com/repos/ronaksoft/mtproto/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ronaksoft/mtproto/issues/5/comments","events_url":"https://api.github.com/repos/ronaksoft/mtproto/issues/5/events","html_url":"https://github.com/ronaksoft/mtproto/issues/5","id":285014378,"number":5,"title":"Messages_SendMessage always returns error 400 / INPUT_REQUEST_TOO_LONG","user":{"login":"moorage","id":8590,"avatar_url":"https://avatars3.githubusercontent.com/u/8590?v=4","gravatar_id":"","url":"https://api.github.com/users/moorage","html_url":"https://github.com/moorage","followers_url":"https://api.github.com/users/moorage/followers","following_url":"https://api.github.com/users/moorage/following{/other_user}","gists_url":"https://api.github.com/users/moorage/gists{/gist_id}","starred_url":"https://api.github.com/users/moorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorage/subscriptions","organizations_url":"https://api.github.com/users/moorage/orgs","repos_url":"https://api.github.com/users/moorage/repos","events_url":"https://api.github.com/users/moorage/events{/privacy}","received_events_url":"https://api.github.com/users/moorage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-29T00:36:48Z","updated_at":"2017-12-29T00:36:48Z","closed_at":null,"author_association":"NONE","body":"Whenever I call \r\n```\r\nmyString := \"hello\"\r\naUserId := <someUser'sId>\r\nmtproto.Messages_SendMessage(myString, mtproto.TL_inputPeerChat{Chat_id: int32(aUserId)}, 0)\r\n```\r\n\r\nI get the following error: `{400 INPUT_REQUEST_TOO_LONG}`.\r\n\r\nI'm guessing that's something to do with the implementation of `func (e TL_messages_sendMessage) encode() []byte`, but I'm wondering if you have any guesses?"}}
{"actor":{"display_login":"moorage"}}