{"action":"created","issue":{"url":"https://api.github.com/repos/leandrotoledo/python-telegram-bot/issues/115","labels_url":"https://api.github.com/repos/leandrotoledo/python-telegram-bot/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/leandrotoledo/python-telegram-bot/issues/115/comments","events_url":"https://api.github.com/repos/leandrotoledo/python-telegram-bot/issues/115/events","html_url":"https://github.com/leandrotoledo/python-telegram-bot/issues/115","id":119941216,"number":115,"title":"Clarification of dispatcher.py::processUpdate()","user":{"login":"rbpasker","id":87866,"avatar_url":"https://avatars.githubusercontent.com/u/87866?v=3","gravatar_id":"","url":"https://api.github.com/users/rbpasker","html_url":"https://github.com/rbpasker","followers_url":"https://api.github.com/users/rbpasker/followers","following_url":"https://api.github.com/users/rbpasker/following{/other_user}","gists_url":"https://api.github.com/users/rbpasker/gists{/gist_id}","starred_url":"https://api.github.com/users/rbpasker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbpasker/subscriptions","organizations_url":"https://api.github.com/users/rbpasker/orgs","repos_url":"https://api.github.com/users/rbpasker/repos","events_url":"https://api.github.com/users/rbpasker/events{/privacy}","received_events_url":"https://api.github.com/users/rbpasker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-02T13:33:40Z","updated_at":"2015-12-02T13:52:59Z","closed_at":null,"body":"Can someone clarify when a 'string update' is sent to the bot? Is this historical?\r\n\r\n````\r\n    def processUpdate(self, update):\r\n....\r\n       # string update\r\n        if type(update) is str and update.startswith('/'):\r\n            self.dispatchStringCommand(update)\r\n            handled = True\r\n        elif type(update) is str:\r\n            self.dispatchStringRegex(update)\r\n            handled = True\r\n....\r\n\r\n````"},"comment":{"url":"https://api.github.com/repos/leandrotoledo/python-telegram-bot/issues/comments/161297938","html_url":"https://github.com/leandrotoledo/python-telegram-bot/issues/115#issuecomment-161297938","issue_url":"https://api.github.com/repos/leandrotoledo/python-telegram-bot/issues/115","id":161297938,"user":{"login":"rbpasker","id":87866,"avatar_url":"https://avatars.githubusercontent.com/u/87866?v=3","gravatar_id":"","url":"https://api.github.com/users/rbpasker","html_url":"https://github.com/rbpasker","followers_url":"https://api.github.com/users/rbpasker/followers","following_url":"https://api.github.com/users/rbpasker/following{/other_user}","gists_url":"https://api.github.com/users/rbpasker/gists{/gist_id}","starred_url":"https://api.github.com/users/rbpasker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbpasker/subscriptions","organizations_url":"https://api.github.com/users/rbpasker/orgs","repos_url":"https://api.github.com/users/rbpasker/repos","events_url":"https://api.github.com/users/rbpasker/events{/privacy}","received_events_url":"https://api.github.com/users/rbpasker/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T13:52:59Z","updated_at":"2015-12-02T13:52:59Z","body":"yes, thank. it would be clearer if `Dispatcher` had a method `put()` with a docstring \"put an arbitrary object or command on the queue to be processed by handlers via addString[....]Handler() or addTypeHandler().\" I realize it is superfluous since `update_queue` is an instance variable."}}