teloxide/examples
2020-07-27 00:52:03 +06:00
..
admin_bot Use the default characters per line limit 2020-07-26 23:47:02 +06:00
dialogue_bot #[teloxide(transition)] -> #[teloxide(subtransition)] 2020-07-27 00:52:03 +06:00
heroku_ping_pong_bot Use the default characters per line limit 2020-07-26 23:47:02 +06:00
ngrok_ping_pong_bot Use the default characters per line limit 2020-07-26 23:47:02 +06:00
ping_pong_bot Use three dots instead of the exclamation in the examples 2020-07-25 19:46:05 +06:00
redis_remember_bot #[teloxide(transition)] -> #[teloxide(subtransition)] 2020-07-27 00:52:03 +06:00
shared_state_bot Use the default characters per line limit 2020-07-26 23:47:02 +06:00
simple_commands_bot Use the default characters per line limit 2020-07-26 23:47:02 +06:00
README.md Update README.md 2020-06-01 13:05:52 +06:00
test_examples.sh parallelize test examples 2020-07-03 16:52:36 +03:00

Examples

Just enter the directory (for example, cd dialogue_bot) and execute cargo run to run an example. Don't forget to initialise the TELOXIDE_TOKEN environmental variable.

Bot Description
ping_pong_bot Answers "pong" to each incoming message.
ngrok_ping_pong_bot The ngrok version of ping-pong-bot that uses webhooks.
heroku_ping_pong_bot The Heroku version of ping-pong-bot that uses webhooks.
simple_commands_bot Shows how to deal with bot's commands.
guess_a_number_bot The "guess a number" game.
dialogue_bot Drive a dialogue with a user using a type-safe finite automaton.
admin_bot A bot, which can ban, kick, and mute on a command.
shared_state_bot A bot that shows how to deal with shared state.