{"action":"created","issue":{"url":"https://api.github.com/repos/yagop/telegram-bot/issues/245","labels_url":"https://api.github.com/repos/yagop/telegram-bot/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/yagop/telegram-bot/issues/245/comments","events_url":"https://api.github.com/repos/yagop/telegram-bot/issues/245/events","html_url":"https://github.com/yagop/telegram-bot/issues/245","id":86061108,"number":245,"title":"Unable to delivered sorted messages","user":{"login":"jmontane","id":339645,"avatar_url":"https://avatars.githubusercontent.com/u/339645?v=3","gravatar_id":"","url":"https://api.github.com/users/jmontane","html_url":"https://github.com/jmontane","followers_url":"https://api.github.com/users/jmontane/followers","following_url":"https://api.github.com/users/jmontane/following{/other_user}","gists_url":"https://api.github.com/users/jmontane/gists{/gist_id}","starred_url":"https://api.github.com/users/jmontane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmontane/subscriptions","organizations_url":"https://api.github.com/users/jmontane/orgs","repos_url":"https://api.github.com/users/jmontane/repos","events_url":"https://api.github.com/users/jmontane/events{/privacy}","received_events_url":"https://api.github.com/users/jmontane/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yagop/telegram-bot/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-08T07:20:41Z","updated_at":"2015-06-08T20:29:15Z","closed_at":null,"body":"Hi,\r\n\r\nI'm working in a own plugin. This plugin sends severals messages: 3 text messages and 1 document in following sorting.\r\n\r\n send_large_msg(receiver, Message1)\r\n send_large_msg(receiver, Message2)\r\n send_document(receiver, FilePath1, ok_cb, false)\r\n send_large_msg(receiver, Message3)\r\n\r\nBut user receives messages in following sorting\r\n\r\n send_large_msg(receiver, Message1)\r\n send_large_msg(receiver, Message2)\r\n send_large_msg(receiver, Message3)\r\n send_document(receiver, FilePaht1, ok_cb, false)\r\n\r\nSometimes text messages are received unsorted, for instance, \r\n\r\n send_large_msg(receiver, Message2)\r\n send_large_msg(receiver, Message1)\r\n send_large_msg(receiver, Message3)\r\n send_document(receiver, FilePaht1, ok_cb, false)\r\n\r\nIs there any way to force messages to be delivered in desired sorting? Thanks in advance.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yagop/telegram-bot/issues/comments/110128148","html_url":"https://github.com/yagop/telegram-bot/issues/245#issuecomment-110128148","issue_url":"https://api.github.com/repos/yagop/telegram-bot/issues/245","id":110128148,"user":{"login":"rockneurotiko","id":1377584,"avatar_url":"https://avatars.githubusercontent.com/u/1377584?v=3","gravatar_id":"","url":"https://api.github.com/users/rockneurotiko","html_url":"https://github.com/rockneurotiko","followers_url":"https://api.github.com/users/rockneurotiko/followers","following_url":"https://api.github.com/users/rockneurotiko/following{/other_user}","gists_url":"https://api.github.com/users/rockneurotiko/gists{/gist_id}","starred_url":"https://api.github.com/users/rockneurotiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockneurotiko/subscriptions","organizations_url":"https://api.github.com/users/rockneurotiko/orgs","repos_url":"https://api.github.com/users/rockneurotiko/repos","events_url":"https://api.github.com/users/rockneurotiko/events{/privacy}","received_events_url":"https://api.github.com/users/rockneurotiko/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T20:29:15Z","updated_at":"2015-06-08T20:29:15Z","body":"In #246 I've added a function to utils.lua to send messages in order in an easy way, when @yagop accept it (if he does, maybe my way is wrong xD) you will can send easily messages in order (including send files/images/...)"}}