wiz0u / WTelegramClient

Telegram Client API (MTProto) library written 100% in C# and .NET
https://wiz0u.github.io/WTelegramClient/
MIT License
996 stars 164 forks source link

How to login bot via WTelegramClient #96

Closed Zzz2333 closed 2 years ago

Zzz2333 commented 2 years ago

This library allows you to connect to Telegram and control a user programmatically (or a bot, but Telegram.Bot is much easier for that).

You say this library can control a bot, but I don't know how to login a bot. Could you please give me an exsample just like login user account?

wiz0u commented 2 years ago

make your Config callback answer to "bot_token" and call client.LoginBotIfNeeded()

Zzz2333 commented 2 years ago

Yes, I hvae saw this function later. Sorry, I'm thoughtless. Thanks!