4

So I heard you can create USER bots on TG, as in BOT-like bots but in USER accounts rather than BOT accounts.

I've been searching for ages, cannot find any libs related to MTProto with good documentation on how one actually goes about doing this.

I found the question: How do I use Telegram API without a bot?

however its for another language.

Please let me know if this is still possible, and if so, what libraries are useful for this - libraries that have docs preferably.

Tran
  • 59
  • 1
  • 5
  • [This](https://github.com/telegram-s/telegram-mt) should help. The repo contains an implementation of MTProto in java, so if you follow / read that, you chould be able to create a custom one, on your own. – Rusu Dinu Jul 24 '21 at 07:28
  • [This](https://stackoverflow.com/questions/57661117/telegram-mtproto-java-how-to-get-user-token) should also help. – Rusu Dinu Jul 24 '21 at 07:35
  • @RusuDinu thanks, that has helped, however I cannot seem to find docs on it and the test case is undocumented and the functions have little to no documentation telling me what they do. – Tran Jul 24 '21 at 16:28

2 Answers2

2

TdLib is what you looking for!

TDLib (Telegram Database Library) is a cross-platform, fully functional Telegram client. We designed it to help third-party developers create their own custom apps using the Telegram platform.

TdLib supports multiple languages and has a JSON interface for other languages. So don't worry about your programming language.

It even abstracts whether the internet is connected or not, downloads multiple files based on priority, and so on. I strongly suggest you use TdLib.

https://core.telegram.org/tdlib

https://github.com/tdlib/td

MrMoeinM
  • 2,080
  • 1
  • 11
  • 16
0

If people come here searching for a .NET library that gives access to Telegram Client APIs (to control a User rather than a Bot), I would recommend the WTelegramClient library.

It is open-source, very well documented (lots of examples) and available on Nuget of course.

It is much easier to use for automation than TDLib and cover the full Client API method list, instead of the complex GUI-oriented TD API.

Wizou
  • 1,336
  • 13
  • 24