Giter VIP home page Giter VIP logo

telegram.bot's Introduction

.NET Client for Telegram Bot API

Telegram Chat license

Package Branch Build Test
NuGet NuGet Release master Build status Test Status
MyGet MyGet develop Build status Test Status

.NET client for Telegram Bot API. The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.

Join our super group on Telegram: @tgbots_dotnet

If you need the latest features(tested but unstable), use MyGet feed (auto deployed from develop branch) until we update the NuGet package with stable changes.

Migrate to v14

In our last major release, version 14, almost all of the library is re-written. If you are planning to upgrade, have a look at v13 to v14 migration wiki.

Getting Started

First, talk to BotFather on Telegram to get an API token. Place your token in method below and call the method.

static async Task TestApiAsync()
{
    var botClient = new Telegram.Bot.TelegramBotClient("your API access Token");
    var me = await botClient.GetMeAsync();
    System.Console.WriteLine($"Hello! My name is {me.FirstName}");
}

Learning More

If you don't know how to use this project or what is available for a Telegram bot, check the self-documented Systems Integration tests which are runnable examples of API methods.

Before submitting issues please consult following resources:

Installation

Install as NuGet package:

Package manager:

Install-Package Telegram.Bot

.NET CLI:

dotnet add package Telegram.Bot

For testing you can use the MyGet feed with automated builds.

telegram.bot's People

Contributors

18padx08 avatar a-a-k avatar adebisi-fa avatar banane9 avatar buldo avatar cristiant avatar darkdibblez avatar deril avatar dragonsangel avatar jansivans avatar karb0f0s avatar kolesnikov-sergey avatar mhusinsky avatar mhverbakel avatar mrachini avatar mrroundrobin avatar mrzoidberg avatar olfi01 avatar olgabrezelprivate avatar parabola949 avatar poulad avatar r2d2rigo avatar rgbweb avatar schjan avatar sohrablou avatar thoemmi avatar truil avatar tuscen avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.