Don't have Telegram yet? Try it now!
http://mandarapte.com/apple/programmatically-identify-user-iphone-ipad-find-user-device-portrait-mode-landscape-mode/
Here is how to programmatically identify if user is on iPhone or iPad. There is also way to find out if user is on either device and if it is in portrait mode, landscape mode