Giter Club home page Giter Club logo

nettelebot's People

Contributors

codacy-badger avatar themehrdad avatar vertigra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nettelebot's Issues

CustomKeyboard

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

fileid

hello.
you used int as fileid, but fileid can be string or Long.
thanks

DocumentInfo

In file DocumentInfo.cs there's string:
Thumb = new PhotoSizeInfo(jsonObject["thumb"].Value());
which obviously does not belong there and causes errors

System.OverflowException in UserInfo class

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

thow Exceptions

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).

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.