Skip to content

NikoM87/NTelegramBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NTelegramBot

Telegram Bot API

Usage:

    var bot = new TelegramLoader( token );
    var upds = bot.GetUpdates();

    foreach ( Update upd in upds.Result )
    {
		var msg = upd.Message;

        if ( msg.Text != null )
        {
            var message = bot.SendMessage( msg.From.Id, msg.Text );
			continue;
        }

        if ( msg.Loacaton != null )
        {
            bot.SendLocation( msg.From.Id, msg.Loacaton );
            continue;
        }

		//...
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages