NetTelegramBotApi | C # client library for building Telegram bot | Bot library
kandi X-RAY | NetTelegramBotApi Summary
kandi X-RAY | NetTelegramBotApi Summary
C# client library for building Telegram bot (Contains strongly-types request and response classes, and transport class for sending requests and receiving results.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of NetTelegramBotApi
NetTelegramBotApi Key Features
NetTelegramBotApi Examples and Code Snippets
var bot = new TelegramBot(accessToken);
var me = await bot.MakeRequestAsync(new GetMe());
if (me != null)
{
Console.WriteLine("Me: {0} (@{1})", me.FirstName, me.Username);
}
Community Discussions
Trending Discussions on NetTelegramBotApi
QUESTION
I'm new in Telegram bot programming with C#. I created a simple bot but that doesn't work. Console runs program completely, but bot shows me no response with any commands. And I can't see the buttons in bot. I know something is wrong but I don't know where. Please help me, this is very force for me What should I do? This is my code:
...ANSWER
Answered 2020-Feb-12 at 06:50First cut the codes from catch clause and paste them into try. initialize me and update variables like this:
var me = bot.MakeRequestAsync(new GetMe()).Result;
var updates = bot.MakeRequestAsync(new GetUpdates() { Offset = offset }).Result;
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install NetTelegramBotApi
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page