How Telegram opened its messaging infrastructure to third-party bots and turned a chat app into a software distribution channel that no app store could replicate.