A full Telegram client, user accounts and bots
TsgcTDLib_Telegram is built on TDLib, the official Telegram Database Library that powers Telegram's own applications, so it signs in as a real user account or as a bot, not just through the Bot API. The phone-number authentication flow is surfaced as events, OnAuthenticationCode, OnAuthenticationPassword for 2FA and OnRegisterUser, and traffic arrives typed: OnMessageText, OnMessagePhoto, OnMessageVideo, OnMessageDocument, OnNewChat and OnNewCallbackQuery, with a raw OnEvent underneath. Send text, rich text, documents, photos, videos, albums and invoices, edit, delete, forward and pin messages, create and search chats, groups, supergroups and secret chats, and attach inline or reply keyboards, including request-location and request-phone-number buttons. Anything TDLib knows that is not wrapped yet goes through SendCustomRequest, and HTTP, SOCKS5 and MTProto proxies are one call each.