Yes, Telegram can show your IP address to ensure that there is no abuse, spam, and other violations of the laws of your country. The details of your devices and the apps that you make use of is collected and kept for 12 months maximum.