Skip to content

kreynes/TeleBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeleBot .NET

TeleBot is a lightweight asynchronous wrapper for the Telegram API written in C# for the .NET platform. TeleBot has a focus on ease-of-use and attempts to abstract away the difficulties of communicating with a web service, allowing you to focus on building your applications.

Appveyor Travis-CI
Master Build status Build Status
Develop Build status Build Status

Example

        using TeleBot;
        using TeleBot.API.Message
        
        public static void Main()
        {
            InitializeBot().Wait();
        }

        public static async Task InitializeBot()
        {
            //Creates a new instance of a bot, with the provided 
            //Telegram Bot API Token.
            var bot = new Bot("api_token"); 
            //Send s getMe GET Request, to check if the bot is 
            //authenticating correctly.
            var userbot = await bot.SendGetMeAsync(); //
            await bot.SendMessageAsync(new TextMessage("chatid", "testtext"));
            Console.ReadLine();
        }
    }
}

Installation via NuGet

TODO Add to NuGet

License

Copyright © 2016 contributors to TeleBot. Code released under the MIT License.

About

.NET wrapper for the Telegram Bot API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages