Git Product home page Git Product logo

teleborg's People

Contributors

bw155 avatar demonov avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

teleborg's Issues

Gets stuck if does not get a server response

Hello, I've been using this lib and it's great. I had for a long time a problem when it stopped responding after some days.

After some digging I think the source of the problem is that the reqwest request does not have a timeout. So if it doesn't hear back from the server it just hangs forever.

To do a quick fix I had to update reqwest to a newer version which has an option to add a timeout, as per tiberiusferreira@bcd4a54 .

Anyway, just opening this issue because some other users might run into this problem.

The bot stops working after a while

The bot stops working after a short while. This is because the defaults are too loosely defined, which make the Telegram servers deny your request because there were too many in a short period.

Typo in objects/document.rs

use objects::PhotoSize;

/// Represents a document.
#[derive(Clone, Deserialize, Debug)]
pub struct Document {
    pub file_id: String,
    pub thump: Option<PhotoSize>,
    pub file_name: Option<String>,
    pub mime_typ: Option<String>,
    pub file_size: Option<i64>,
}

mime_typ should be mime_type

Stops responding when gets new_chat_photo

Hi, thanks for this great crate!
I ran into a problem today:
Since a new_chat_photo is declared as String and it actually contains something like:

{
                        "file_id": "AgADAQADe64xG8KcEgV7mYwXR-N_AZAe9y8ABGB9_4t6NQlsVgoBAAEC",
                        "file_size": 10027,
                        "width": 160,
                        "height": 160
}

Serde returns an error and keeps getting the same update and returning an error.

Is the String declaration a bug or a placeholder?

Json parse error after a while

For some reason the bot stops working, after some debugging i found out that the error is caused with parsing the updates. The exact error message is Err(JsonError(ErrorImpl { code: Message("invalid type: sequence, expected a string"), line: 0, column: 0 })) i found this error printing rjson at bot\mod.rs line 86

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.