mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
53be9d0e92
In reordering the parameters, I stick the following principle: place parameters from least changing to most changing. Thus, we have config and bot right from the beginning, next a dialogue with a possible payload, and next updates such as messages, inline queries, etc. This principle is used in languages with a native support for currying, although in Rust people appear to order parameters arbitrarily, so this commit is mostly for the sake of consistency.
Former-commit-id:
|
||
---|---|---|
.. | ||
admin.rs | ||
buttons.rs | ||
command.rs | ||
db_remember.rs | ||
dialogue.rs | ||
dispatching_features.rs | ||
heroku_ping_pong.rs | ||
inline.rs | ||
ngrok_ping_pong.rs | ||
Procfile | ||
purchase.rs | ||
README.md | ||
shared_state.rs | ||
throw_dice.rs |
Usage
$ RUST_LOG=info cargo run --features="full" --example <example-name>
Don't forget to initialise the TELOXIDE_TOKEN
environmental variable.