mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
5922984f6c
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. |
||
---|---|---|
.. | ||
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.