{"action":"created","issue":{"url":"https://api.github.com/repos/LonamiWebs/Telethon/issues/489","repository_url":"https://api.github.com/repos/LonamiWebs/Telethon","labels_url":"https://api.github.com/repos/LonamiWebs/Telethon/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/LonamiWebs/Telethon/issues/489/comments","events_url":"https://api.github.com/repos/LonamiWebs/Telethon/issues/489/events","html_url":"https://github.com/LonamiWebs/Telethon/issues/489","id":281156489,"number":489,"title":"cant print updates","user":{"login":"justxor","id":30596522,"avatar_url":"https://avatars0.githubusercontent.com/u/30596522?v=4","gravatar_id":"","url":"https://api.github.com/users/justxor","html_url":"https://github.com/justxor","followers_url":"https://api.github.com/users/justxor/followers","following_url":"https://api.github.com/users/justxor/following{/other_user}","gists_url":"https://api.github.com/users/justxor/gists{/gist_id}","starred_url":"https://api.github.com/users/justxor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justxor/subscriptions","organizations_url":"https://api.github.com/users/justxor/orgs","repos_url":"https://api.github.com/users/justxor/repos","events_url":"https://api.github.com/users/justxor/events{/privacy}","received_events_url":"https://api.github.com/users/justxor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-11T20:28:51Z","updated_at":"2017-12-14T13:16:20Z","closed_at":"2017-12-11T20:38:10Z","author_association":"NONE","body":"i am trying to get updates and print it:\r\n\r\nclient = TelegramClient('session_name', api_id, api_hash, update_workers=1, spawn_read_thread=False)\r\nclient.connect()\r\nfrom telethon.tl.types import UpdateShortMessage, PeerUser\r\n\r\ndef replier(update):\r\n    print(update.message[::-1])\r\n    if isinstance(update, UpdateShortMessage) and not update.out:\r\n        #client.send_message(PeerUser(update.user_id), update.message[::-1])\r\n        print(update.message[::-1])\r\n\r\nclient.add_update_handler(replier)\r\ni send myself message from another account but nothing prints except  -Press enter to stop this! "},"comment":{"url":"https://api.github.com/repos/LonamiWebs/Telethon/issues/comments/351707838","html_url":"https://github.com/LonamiWebs/Telethon/issues/489#issuecomment-351707838","issue_url":"https://api.github.com/repos/LonamiWebs/Telethon/issues/489","id":351707838,"user":{"login":"SyrianProgrammer","id":8638284,"avatar_url":"https://avatars1.githubusercontent.com/u/8638284?v=4","gravatar_id":"","url":"https://api.github.com/users/SyrianProgrammer","html_url":"https://github.com/SyrianProgrammer","followers_url":"https://api.github.com/users/SyrianProgrammer/followers","following_url":"https://api.github.com/users/SyrianProgrammer/following{/other_user}","gists_url":"https://api.github.com/users/SyrianProgrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/SyrianProgrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SyrianProgrammer/subscriptions","organizations_url":"https://api.github.com/users/SyrianProgrammer/orgs","repos_url":"https://api.github.com/users/SyrianProgrammer/repos","events_url":"https://api.github.com/users/SyrianProgrammer/events{/privacy}","received_events_url":"https://api.github.com/users/SyrianProgrammer/received_events","type":"User","site_admin":false},"created_at":"2017-12-14T13:16:20Z","updated_at":"2017-12-14T13:16:20Z","author_association":"NONE","body":"```\r\nimport telethon\r\n\r\nTelegramClient = TelegramAPI('PyTelegram/pytelegram',\r\n                            api_id=12345,\r\n                            api_hash='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\r\n                            update_workers=4,\r\n                            spawn_read_thread=False)\r\n\r\ndef callback(update):\r\n      print('I received', update)\r\n\r\nTelegramClient.add_update_handler(callback)\r\n\r\nTelegramClient._client.idle()\r\n```"}}
{"actor":{"display_login":"SyrianProgrammer"}}