{"action":"created","issue":{"url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/491","repository_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot","labels_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/491/labels{/name}","comments_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/491/comments","events_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/491/events","html_url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/491","id":197514460,"number":491,"title":"[Question] How to get user's Id","user":{"login":"devianpctek","id":1848859,"avatar_url":"https://avatars.githubusercontent.com/u/1848859?v=3","gravatar_id":"","url":"https://api.github.com/users/devianpctek","html_url":"https://github.com/devianpctek","followers_url":"https://api.github.com/users/devianpctek/followers","following_url":"https://api.github.com/users/devianpctek/following{/other_user}","gists_url":"https://api.github.com/users/devianpctek/gists{/gist_id}","starred_url":"https://api.github.com/users/devianpctek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devianpctek/subscriptions","organizations_url":"https://api.github.com/users/devianpctek/orgs","repos_url":"https://api.github.com/users/devianpctek/repos","events_url":"https://api.github.com/users/devianpctek/events{/privacy}","received_events_url":"https://api.github.com/users/devianpctek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-25T20:38:48Z","updated_at":"2016-12-27T17:00:34Z","closed_at":null,"body":"Hello, just as the title says, I want to know how to retrieve the user's id, this in order so the bot only replies to that specific user/s, I'm playing with some home automation stuff, and found a code using node.js that does exactly that, but I want to do it in python, I put the code in js so you get the idea\r\n\r\n`function echo(message) {\r\n  \r\n  bot.sendMessage({\r\n\t  chat_id: message.chat.id,\r\n\t  text: 'User ID ' + message.from.id + ' says \"' + message.text + '\"',\r\n  });\r\n}`\r\n\r\n\r\nI'm interested in the \"message.from.id\" part, this because as I say, I just want only certain users to interact with the bot.\r\n\r\nThanks in advance\r\n"},"comment":{"url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/comments/269352595","html_url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/491#issuecomment-269352595","issue_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/491","id":269352595,"user":{"login":"devianpctek","id":1848859,"avatar_url":"https://avatars.githubusercontent.com/u/1848859?v=3","gravatar_id":"","url":"https://api.github.com/users/devianpctek","html_url":"https://github.com/devianpctek","followers_url":"https://api.github.com/users/devianpctek/followers","following_url":"https://api.github.com/users/devianpctek/following{/other_user}","gists_url":"https://api.github.com/users/devianpctek/gists{/gist_id}","starred_url":"https://api.github.com/users/devianpctek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devianpctek/subscriptions","organizations_url":"https://api.github.com/users/devianpctek/orgs","repos_url":"https://api.github.com/users/devianpctek/repos","events_url":"https://api.github.com/users/devianpctek/events{/privacy}","received_events_url":"https://api.github.com/users/devianpctek/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T17:00:34Z","updated_at":"2016-12-27T17:00:34Z","body":"Thanx a lot"}}
{"actor":{"display_login":"devianpctek"}}