Don't have Telegram yet? Try it now!
https://kodejava.org/how-do-i-use-datainputstream-and-dataoutputstream/
How do I use DataInputStream and DataOutputStream?