r/matrixdotorg • u/levtahor • Sep 16 '21
How to start programming an online chat?
Hello, I understand a little of programming logic and the basics of Python, I already coded a small game and some simple applications in an optactive discipline at the university, and now I want to make an online chat to talk to my friends. My idea at first is to set up a simple online chat client, selfhosted, private (with encrypted messages, anonymous, etc.), that could be accessed both by pc and by mobile, but with the possibility of increasing it scale in the future, gradually increase functionalities in the app in order to make it somekind of private clone of programs such as WhatsApp or Discord or others. The problem is that I have no idea how to get started. I have already read a bit of the documentation of the Matrix dot org, a few tutorials in the Python website, some tutorials dispersed on the Internet and Youtube and even looked for paid programming courses, but all tutorials I found or they were too advanced for my level, addressing contents of which I don't have any knowledge, or they were extremely simple tutorials, copy and paste style, which do not teach anything about how an online communication service works. Someone here with experience in this area could guide me giving me a tip of where I should actually start to start a project like these? If it is something possible for a beginner in programming to do or if I should try to make more basic applications before, send me tutorials or documentation that could help me? I would be very grateful. Anyway, sorry for my english, it's not my first language, and thank you for your attention. May the peace be with you.
2
u/ssorbom Sep 16 '21 edited Sep 16 '21
I would start simply by writing a bot. From there, a proper Matrix client is going to be that plus more steps. If you haven't learned gui programming, I highly recommend the pyqt Library. You will probably need it once you start working on the actual client. Unless of course you do something command line based. There is also a good bot framework called nio that is the basis of several already existing clients. If you want an even easier framework, maubot has more features, but caters more specifically to writing Bots than general clients
2
u/DasSkelett Sep 16 '21
My idea at first is to set up a simple online chat client, selfhosted, private (with encrypted messages, anonymous, etc.)
If you decide to give it a try, always keep in mind what you have in front of you: a self-written tool with tons of bugs and security issues.
Be honest to your friends and advertise it as such – nobody wants to find out that their encrypted messages never were properly encrypted.
0
Sep 16 '21
[deleted]
1
u/levtahor Sep 16 '21
Thanks for the help! At first, I thought about setting up a Matrix server, but I don't want to use the clients avaiable on the site, for they aren't customizable (or at least, this was my first impression). If I were to create my own client for a Matrix server, is there any documentation that could help me with this? I'll look for the other things that you mentioned too. Again, thanks for the attention!
6
u/pomegranateseasquid Sep 16 '21
Are you aware that most clients are OpenSource, therefore you can just modify the code therefore customize them however you want?
3
u/DasSkelett Sep 16 '21
If I were to create my own client for a Matrix server, is there any documentation that could help me with this?
https://matrix.org/docs/develop/
But really, this will be way too much for you. You can create your own chat application (not based on the Matrix protocol to keep it simpler), and it would be a great experience, but don't do it with the goal to actually use it for communication with your friends.
1
u/Remi1115 Sep 17 '21
FYI OP has posted this same question to four subreddits. So don't expect extensive replies from OP.