An Open-Source Telegram Server in C#: Four Years Later

https://hackernoon.imgix.net/images/u4mUxyF3XZOMs8vkZMRncDyXujp2-3c83bew.png

When I decided to build an open-source Telegram server in C# four years ago, the first thing
I needed was a transport. I wrote about that part inBuilding a High Performance TCP Server in
C#
. The post ended with a TCP echo server built around SocketAsyncEventArgs, IValueTaskSource,
pooling, andSystem.IO.Pipelines.

That server is now called Ferrite. The TCP implementation survived with relatively few changes, but moving bytes was only the first step. To make an actual Telegram client connect, I had to implement MTProto, generate Telegram’s TL types, dispatch hundreds of methods, and reproduce enough server-side state for the client to behave normally.


Ferrite currently targets .NET 10 andTelegram API layer 214. It dispatches 494 of the 732 methods in
that layer. The more useful result is that patched versions of the official Android and iOS applications
can register, exchange messages, create groups and channels, transfer...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more

https://cdn.mos.cms.futurecdn.net/ghkY9CqeiheUvFSMCkRtNK-2560-80.jpg

Samsung and LG vow to remove 'botnet' apps from their smart TV app stores that turned sets into an AI scraping machines — but the shocking claim that over 40% of webOS apps had botnet code raises the question of how things ever got this bad

* Malware botnets route traffic through the internet connection on many smart TVs * Roku, Fire TV, Tizen and webOS all affected * Some manufacturers are removing affected apps LG, Samsung, Roku and Fire TV televisions and devices may have been part of a malicious "botnet" — and millions of TVs could