telegrambots / book Goto Github PK
View Code? Open in Web Editor NEWDocumentation for Telegram Bots Projects
Home Page: https://telegrambots.github.io/book
Documentation for Telegram Bots Projects
Home Page: https://telegrambots.github.io/book
I was following this tutorial I found that there is a chunk of code which shows errors when pasting it into a newly created project with the latest packages.
The code:
botClient.StartReceiving(
new DefaultUpdateHandler(HandleUpdateAsync, HandleErrorAsync), // < Error 1
cts.Token); // < Error 2
// Error 1:
// cannot convert from 'Telegram.Bot.Extensions.Polling.DefaultUpdateHandler' to
// 'System.Func<Telegram.Bot.ITelegramBotClient, Telegram.Bot.Types.Update, System.Threading.CancellationToken, System.Threading.Tasks.Task>'
// [MyBot]csharp(CS1503)
// Error2:
// cannot convert from 'System.Threading.CancellationToken' to
// 'System.Func<Telegram.Bot.ITelegramBotClient, System.Exception, System.Threading.CancellationToken, System.Threading.Tasks.Task>'
// [MyBot]csharp(CS1503)
Solved it this way
botClient.StartReceiving(
HandleUpdateAsync,
HandleErrorAsync,
null,
cts.Token);
Nugets:
.NET Version: net5.0
IDE: VS2019 Version 16.11.2
mdBook 0.4.19 gives this warning during build:
[WARN] (mdbook::book): The output.html.google-analytics field has been deprecated; it will be removed in a future release.
Consider placing the appropriate site tag code into the theme/head.hbs file instead.
The tracking code may be found in the Google Analytics Admin page.
According to documentation
google-analytics: This field has been deprecated and will be removed in a future release. Use the theme/head.hbs file to add the appropriate Google Analytics code instead.
mdBook guide on Themes
Section: Intermediate
Topics to cover may include:
Section: Logging
Topics to clover may include:
See also: TelegramBots/Telegram.Bot#1047
Section: Beginner
Topics to cover may include:
parse_mode
for message text and captionsSection: Advanced
Sub section: Passport
A page to briefly demo how to set data element errors for passport data.
It might take a test collection from systems integration tests and discuss it.
We should fix our release pipeline and replace Travis CI with another CI/CD solution.
Section: Beginner
Topics to cover may include:
Section: Beginner
Topics to cover may include:
sendMessage
)Section: Intermediate
Topics to cover may include:
Hi,
What should be the code to display a logo instead of the title?
Thanks for your help.
mdBook allows you to include portions of a file to resulting book with {{include }}
syntax.
Section: Beginner
Sub section: Reply Markup
Topics to cover may include:
I'm try to use v17 package of the TGBot .NET API Client.
As I understand it, the Telegram.Bot.Polling space has been moved to a separate package
https://github.com/TelegramBots/Telegram.Bot.Extensions.Polling
I've just get code from:
https://telegrambots.github.io/book/1/example-bot.html
It is necessary to indicate this on the page "example-bot.md", as well as specify that you need to add an additional package:
dotnet add package Telegram.Bot.Extensions.Polling
It is possible to host solution with C# snippets to validate examples code with actual build.
Add pages to the book:
Message
objectChatId
. how to pass channel names as string.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.