问题
The documentation for subscribing to the PUSH infrastructure in the Telegram API is very lacking, as it mainly focuses on mobile platforms.
But what if one is developing a web app or a desktop app? How does the "Simple Push" mode work in this case?
I've tried to look at the javascript sources for webogram, and it's not clear if it uses PUSH infrastructure or just polling with a timeout (some commits state "initial changes towards push messaging", but it's not clear if it's finished). Looking at the C or C++ sources for other desktop apps I've found doesn't sound very appealing, so I'd be grateful for any pointers!
来源:https://stackoverflow.com/questions/29542714/how-do-simple-push-events-work-in-telegram