teloxide/examples
Hirrolot 53be9d0e92 Reorder parameters in the examples
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: 5922984f6c
2022-10-03 17:54:06 +06:00
..
admin.rs Use same identifiers across the examples 2022-10-03 17:07:38 +06:00
buttons.rs Reorder parameters in the examples 2022-10-03 17:54:06 +06:00
command.rs Use same identifiers across the examples 2022-10-03 17:07:38 +06:00
db_remember.rs Reorder parameters in the examples 2022-10-03 17:54:06 +06:00
dialogue.rs Reorder parameters in the examples 2022-10-03 17:54:06 +06:00
dispatching_features.rs Reorder parameters in the examples 2022-10-03 17:54:06 +06:00
heroku_ping_pong.rs Reorder parameters in the examples 2022-10-03 17:54:06 +06:00
inline.rs Reorder parameters in the examples 2022-10-03 17:54:06 +06:00
ngrok_ping_pong.rs Reorder parameters in the examples 2022-10-03 17:54:06 +06:00
Procfile Fix the docs of the Heroku example 2022-02-05 00:31:13 +06:00
purchase.rs Reorder parameters in the examples 2022-10-03 17:54:06 +06:00
README.md Update examples/README.md 2022-03-21 23:04:18 +06:00
shared_state.rs Reorder parameters in the examples 2022-10-03 17:54:06 +06:00
throw_dice.rs Reorder parameters in the examples 2022-10-03 17:54:06 +06:00

Usage

$ RUST_LOG=info cargo run --features="full" --example <example-name>

Don't forget to initialise the TELOXIDE_TOKEN environmental variable.