Telegram is not end-to-end encrypted in the way other messaging services are (whatsapp, signal), it is encrypted but Telegram holds the keys and are able to decrypt any messages not sent on a "secret chat" which is not the default, or any messages on a group chat