TDLight is a fork of the Telegram Bot API with more methods and optional user support. Tourmaline has out of the box support for TDLight, including support for its User API methods. All supported TDLight specific methods can be found here.
If you want to use TDLight without running your own API server you can use one of the official TDLight managed servers such as telegram.rest.
Unlike the normal Bot API, TDLight supports user mode. While pretty limited at the moment, this gives you the ability to log in with a user account and treat it as you would a normal bot (with some restrictions of course). Logging in with a user account is a 2 step process:
First: Call login with the phone number that's attached to your account. This will return a
user_token which can be saved and provided directly to the
Client.new method later.
Second: Telegram should've sent a code to a logged in client or your phone. Call send_code with that code to complete the authorization process.
If all went well you should now be logged in and able to do most of the same things that bots can do. Some methods are (obviously) not available as a user. This includes:
It is also not possible to attach
reply_markup to your messages.
The main downside to using TDLight for your userbot is the lack of support (currently) for outgoing messages. There is an issue for this, and hopefully it will be resolved soon.