Or a broadcast channel (the broadcast flag differentiate those) Channel: A (large or public) chat group (sometimes called supergroup),.In the API, Telegram uses some terms/classnames that can be confusing as they differ from the terms shown to end-users: ➡️ Check the FAQ if example codes don't compile correctly on your machine, or other troubleshooting. ➡️ You can find lots of useful code snippets in EXAMPLESĪnd more detailed programs in the Examples subdirectory. Var myself = await client.LoginUserIfNeeded() Ĭonsole.WriteLine($"We are logged-in as ") Īwait client.SendMessageAsync(target, "Hello, World") Using var client = new WTelegram.Client() How to useĪfter installing WTelegramClient through Nuget, your first Console program will be as simple as: static async Task Main(string _) If you are a beginner in C#, starting a project based on this library might not be a great idea. ⚠️ This library requires understanding advanced C# techniques such as asynchronous programming or subclass pattern matching. This ReadMe is a quick but important tutorial to learn the fundamentals about this library. This library allows you to connect to Telegram and control a user programmatically (or a bot, but Telegram.Bot is much easier for that).Īll the Telegram Client APIs (MTProto) are supported so you can do everything the user could do with a full Telegram GUI client. Telegram Client API library written 100% in C# and.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |