rough idea, I am by no mean a skilled go developer, and I am still looking for a decent reading material that's more than what the Golang website offers.
What's this code About?
As you can see, tdlib itself is super explicit. You can't achieve anything with just one or two function calls. You have to exactly tell it what to do.
Meanwhile, there's lots of high level API built upon tdlib for other languages like Python (essentially, I want to make something like pyrogram or telethon)
One of the main problems is that you can't have one loop for all the updates that's, not a cuncurrent way to deal with multiple type of updates.
So what my code at this point does is that you're able to call OnMessage multiple times.
I still have to find a way to implement filters (it's hard for me right now since go doesn't have user defined generics so if you can point out a way as well I would appreciate it)
So, please review my code I would like a second opinion before I go further into implementing wrong things.
Обсуждают сегодня