Comments (3)
Thanks for the proposal, I'll read it through in the coming week and reply here.
from teloxide.
For some context: the two main reasons why we did not do something like that before are
- you can't impl setters on
Request<P: HasPayload<Payload = SendMessage>>
since they will overlap1 - we did not think of
Request<SendMessage>
which solves the overlap - I wanted to keep the concrete types everywhere
- With concrete types some of these designs require GATs, that weren't stable at the time
Footnotes
-
it shouldn't overlap, but it's a current limitation of
rustc
↩
from teloxide.
For context /2: the idea is to keep the way users call requests (bot.method(x).optional(y).await?
) and to keep all the features (opt-in things like throttling, default parse mode, etc) but make the actual interface and implementation simpler and as such, nicer to use, especially for beginners.
from teloxide.
Related Issues (20)
- An error from the update listener: Api(TerminatedByOtherGetUpdates) HOT 5
- Feature Request: add `forwardMessages`, `copyMessages`, `deleteMessages` and `getUserChatBoosts` HOT 1
- BotCommands can't derive enum variant where field is a custom struct
- unpin_chat_message missing message_id optional parameter HOT 2
- Feature Request: Upgrade reqwest crate HOT 1
- Feature Request: Add support for Bot API 6.6
- Parse Error: Data did not match any variant of untagged enum TelegramResponse for `getStickerSet` HOT 7
- Feature Request: Telegram TEST mode HOT 3
- Feature Request: Group / user count HOT 3
- Add latest supported telegram api version to docs HOT 4
- Feature Request: support `bots.SetBotInfo` HOT 1
- Error in SendPoll documentation
- Problem with directly extract user data from non "common message" HOT 1
- teloxide::dispatching::dispatcher > Cannot parse an update - Looks like message quotes generate an error HOT 2
- Feature Request: Any plan for supporting telegram api 7.x? HOT 1
- incorrect parameter for send_game
- Feature Request: Implements messages.sendReaction HOT 1
- reqwest::Client 0.12.X E0308 when using Bot::with_client HOT 1
- Feature Request: multilingual bot example
- Add support for TBA6.7, TBA6.8, TBA6.9 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teloxide.