themehrdad / nettelebot Goto Github PK
View Code? Open in Web Editor NEWTelegram bot API implementation on .NET framework
License: MIT License
Telegram bot API implementation on .NET framework
License: MIT License
I've read in telegram api doc that I can request location in the button by passing a object (with optional field request_location set to true) instead of a simple string. How too do that with your class?
Thank you
hello.
you used int as fileid, but fileid can be string or Long.
thanks
In file DocumentInfo.cs there's string:
Thumb = new PhotoSizeInfo(jsonObject["thumb"].Value());
which obviously does not belong there and causes errors
I've found a while ago that trying GetUpdates()
throws a System.OverflowException exception
.
This is because in the UserInfo
class the Id
property is defined as Int32
and the returned result exceeds this data type.
The GetUpdates
method is defined in the NetTelebot.TelegramBotClient
class.
The UserInfo
class is defined in NetTelebot.Type
namespace.
The request that is executed is https://api.telegram.org/bot{API_TOKEN}/getUpdates
Hi again. There are some places in the code (like in TelegramBotClient.cs) where you throw exceptions. If i use this bot as described like
var botClient = new TelegramBotClient() { Token = "[YOUR_BOT_TOKEN]" };
botClient.UpdatesReceived += botClient_UpdatesReceived;
botClient.StartCheckingUpdates()
I have no proper place to catch them. I'd suggest to introduce an OnError event and fire it instead of throwing exceptions passing additional info about error and place where it happened. Also you can cover network issues with this event (catching exceptions on network failures and passing them to the event).
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.