voider1 / teleborg Goto Github PK
View Code? Open in Web Editor NEWPerformant wrapper around the Telegram bot API.
Home Page: https://gitlab.com/Gahr/teleborg
License: Apache License 2.0
Performant wrapper around the Telegram bot API.
Home Page: https://gitlab.com/Gahr/teleborg
License: Apache License 2.0
I recently had a problem with my internet connection. When it was solved, the bot didn't respond anymore. In the terminal was no activity as well. maybe a check for internet and let it resume when there is connection again?
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.
It would be nice to get a list of all the users in a groupchat.
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
Maybe a bot manager to run multiple bots on the same instance.
I would like to be able to receive edited messages directly into my command handler.
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
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?
It would be nice to be able to get the passed arguments
Could you make a feature to add button commands for example, polling?
The from_user field from the Message is always empty.
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.
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.