Don't have Telegram yet? Try it now!
http://www.css-jquery-design.com/2018/07/input-phone-number-auto-formatting-as-user-types-in-jquery-javascript/
Input Phone number Auto Formatting as user types in jQuery / javascript