@n0toose @schratze you'll be much better off reimplementing from scratch, but looking at how Telegram behaves can still be a valuable resource. It's basically what I got started on with Neo, my Matrix client project, but thats been dormant for years now