Telegram chats by default are not end-to-end encrypted. It does have e2e-encrypted chats as an option, but they're only accessible on one device. So:
>how does telegram do this?
...the short answer is they don't.
>how does telegram do this?
...the short answer is they don't.