{"action":"created","issue":{"url":"https://api.github.com/repos/nickoala/telepot/issues/148","repository_url":"https://api.github.com/repos/nickoala/telepot","labels_url":"https://api.github.com/repos/nickoala/telepot/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/nickoala/telepot/issues/148/comments","events_url":"https://api.github.com/repos/nickoala/telepot/issues/148/events","html_url":"https://github.com/nickoala/telepot/issues/148","id":174651265,"number":148,"title":"What happens with Heroku and multiple instances?","user":{"login":"garciaw","id":16128722,"avatar_url":"https://avatars.githubusercontent.com/u/16128722?v=3","gravatar_id":"","url":"https://api.github.com/users/garciaw","html_url":"https://github.com/garciaw","followers_url":"https://api.github.com/users/garciaw/followers","following_url":"https://api.github.com/users/garciaw/following{/other_user}","gists_url":"https://api.github.com/users/garciaw/gists{/gist_id}","starred_url":"https://api.github.com/users/garciaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garciaw/subscriptions","organizations_url":"https://api.github.com/users/garciaw/orgs","repos_url":"https://api.github.com/users/garciaw/repos","events_url":"https://api.github.com/users/garciaw/events{/privacy}","received_events_url":"https://api.github.com/users/garciaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-01T23:46:21Z","updated_at":"2016-09-05T12:22:18Z","closed_at":null,"body":"Hi, I read that when you run code in Heroku, it can go to any number of machines and have multiple instances of the code on different machines serving different users. What happens with webhooks then? I'm just a hobby developer, so I don't really know much about webhooks and connections... But wouldn't there be errors like when I try to run 2 local instances of telepot? Or if it doesn't raises errors, how could that affect speed of receiving / sending messages?\r\n\r\nPS: my code has\r\n\r\n    bot.setWebhook() # unset if was set previously\r\n    bot.setWebhook(URL + SECRET)\r\n\r\nAnd I think that should take care of things, but if feels like there would still be a \"tug of war\" where each instance is trying to get its webhook back every second"},"comment":{"url":"https://api.github.com/repos/nickoala/telepot/issues/comments/244734325","html_url":"https://github.com/nickoala/telepot/issues/148#issuecomment-244734325","issue_url":"https://api.github.com/repos/nickoala/telepot/issues/148","id":244734325,"user":{"login":"nickoala","id":13035417,"avatar_url":"https://avatars.githubusercontent.com/u/13035417?v=3","gravatar_id":"","url":"https://api.github.com/users/nickoala","html_url":"https://github.com/nickoala","followers_url":"https://api.github.com/users/nickoala/followers","following_url":"https://api.github.com/users/nickoala/following{/other_user}","gists_url":"https://api.github.com/users/nickoala/gists{/gist_id}","starred_url":"https://api.github.com/users/nickoala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickoala/subscriptions","organizations_url":"https://api.github.com/users/nickoala/orgs","repos_url":"https://api.github.com/users/nickoala/repos","events_url":"https://api.github.com/users/nickoala/events{/privacy}","received_events_url":"https://api.github.com/users/nickoala/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T12:22:18Z","updated_at":"2016-09-05T12:22:18Z","body":"I have not used Heroku, so cannot give any informed advice there.\r\n\r\nFrom the perspective of telepot and Telegram Bot API, I can only say that there should not be two programs with the same token doing `getUpdates` or `setWebhook` at the same time."}}
{"actor":{"display_login":"nickoala"}}