How to use Telegram API in C# to send a message
问题 I want use Telegram API in C# for send a simple message to a number. I found some lib's on GitHub but I am not able to use them. Can anyone give a simple code ? Can I simply make HTTP calls ? 回答1: Install-Package Telegram.Bot Create a bot using the botfather get the api key using the /token command (still in botfather) use this code: var bot = new Api("your api key here"); var t = await bot.SendTextMessage("@channelname or chat_id", "text message"); You can now pass a channel username (in the