{"action":"closed","issue":{"url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/123","labels_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/123/comments","events_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/123/events","html_url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/123","id":120890317,"number":123,"title":"@run_async decorator with functions with a third argument ?","user":{"login":"TheCroak","id":5384645,"avatar_url":"https://avatars.githubusercontent.com/u/5384645?v=3","gravatar_id":"","url":"https://api.github.com/users/TheCroak","html_url":"https://github.com/TheCroak","followers_url":"https://api.github.com/users/TheCroak/followers","following_url":"https://api.github.com/users/TheCroak/following{/other_user}","gists_url":"https://api.github.com/users/TheCroak/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCroak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCroak/subscriptions","organizations_url":"https://api.github.com/users/TheCroak/orgs","repos_url":"https://api.github.com/users/TheCroak/repos","events_url":"https://api.github.com/users/TheCroak/events{/privacy}","received_events_url":"https://api.github.com/users/TheCroak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"jh0ker","id":3945220,"avatar_url":"https://avatars.githubusercontent.com/u/3945220?v=3","gravatar_id":"","url":"https://api.github.com/users/jh0ker","html_url":"https://github.com/jh0ker","followers_url":"https://api.github.com/users/jh0ker/followers","following_url":"https://api.github.com/users/jh0ker/following{/other_user}","gists_url":"https://api.github.com/users/jh0ker/gists{/gist_id}","starred_url":"https://api.github.com/users/jh0ker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jh0ker/subscriptions","organizations_url":"https://api.github.com/users/jh0ker/orgs","repos_url":"https://api.github.com/users/jh0ker/repos","events_url":"https://api.github.com/users/jh0ker/events{/privacy}","received_events_url":"https://api.github.com/users/jh0ker/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-12-07T23:03:56Z","updated_at":"2015-12-21T18:47:14Z","closed_at":"2015-12-21T18:47:13Z","body":"Hey, I'm having a bit of trouble using `@run_async`, here is my code snippet (I'm using the same architecture as in the updater_bot and installed the repository version):\r\n\r\n        dp.addTelegramCommandHandler(\"akkarin\", akkarin)\r\n\r\nand:\r\n\r\n    @run_async\r\n    def akkarin(bot, update, args):\r\n        pass\r\n\r\nHowever when I send a command /akkarin, I get the following error in the console:\r\n\r\n    Exception in thread Thread-1:\r\n    Traceback (most recent call last):\r\n      File \"C:\\Program Files\\Python 3.5\\lib\\threading.py\", line 923, in _bootstrap_inner\r\n        self.run()\r\n      File \"C:\\Program Files\\Python 3.5\\lib\\threading.py\", line 871, in run\r\n        self._target(*self._args, **self._kwargs)\r\n      File \"C:\\Program Files\\Python 3.5\\lib\\site-packages\\telegram\\dispatcher.py\", line 39, in pooled\r\n        result = func(*args, **kwargs)\r\n    TypeError: akkarin() missing 1 required positional argument: 'args'\r\n\r\nI've tried fidling a bit with dispatcher.py to solve my problem, but to no avail due to my lack of knowledge; apparently, `@run_async` doesn't work with functions with an args argument. Is it a planned feature or is there a reason why it won't be implemented ?\r\n\r\nThank you for what you are doing, I had my own bot but this module just makes things that much easier, it takes less place and is easier to maintain :)\r\n\r\nEDIT: I should note that this function works perfectly without the @run_async decoractor, it is just that it, you know, doesn't run asynchronously"}}