Похожие чаты

Https://Gist.Github.Com/Itshaadi/6c6c7312bccfd8047a9f5144356e80bc Few things to consider before reading this code. It's still a

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.

1 ответов

12 просмотров

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта