Commit graph

2531 commits

Author SHA1 Message Date
Hirrolot
62934f29bd Harmonise naming convention across the examples 2022-02-02 15:40:22 +06:00
Hirrolot
c7bbfcccfa Enable all features when testing the examples 2022-02-02 15:29:52 +06:00
Hirrolot
60df0a5cf8 Refactor Dialogue
Remove useless stuff, some cleanup, u know.
2022-02-02 15:25:23 +06:00
Hirrolot
d49b03edae Fix type aliases in the examples 2022-02-02 06:28:32 +06:00
Hirrolot
d25efa9e14 Document UpdateHandler, DefaultHandler 2022-02-02 05:00:45 +06:00
Hirrolot
5101786d0b requester => bot 2022-02-02 04:55:12 +06:00
Hirrolot
21eb048ca2 Decouple Dispatcher from DispatcherBuilder 2022-02-02 04:51:36 +06:00
Hirrolot
4b1bc22360 Update testing examples CI 2022-02-02 04:00:48 +06:00
Hirrolot
7b6d2cb86c examples/dices_bot.rs => examples/dices.rs 2022-02-02 03:57:51 +06:00
Hirrolot
37220975fe
Update examples/README.md 2022-02-02 03:56:43 +06:00
Hirrolot
3b3f5f855f Make all examples just *.rs files 2022-02-02 03:54:00 +06:00
Hirrolot
1831fbf947
Merge pull request #503 from alexkonovalov/alexkonovalov
added alexkonovalov/PedigreeBot
2022-02-01 21:41:03 +06:00
Alex
47e3bdab56 move alexkonovalov/PedigreeBot to top 3 in README 2022-02-01 17:34:56 +02:00
Alex
8cfd457016 added alexkonovalov/PedigreeBot 2022-02-01 16:24:03 +02:00
Hirrolot
e92eef4a7c Document some stuff 2022-01-31 19:23:47 +06:00
Hirrolot
0a6487c23c Fix examples/admin_bot, examples/simple_commands_bot 2022-01-28 21:04:05 +06:00
Hirrolot
2058395d54 Add Me into the dependencies 2022-01-28 20:52:01 +06:00
Hirrolot
c017e59eb3 Update the examples 2022-01-26 15:51:51 +06:00
Hirrolot
58311ef608 Add Update & UpdateFilterExt to prelude2 2022-01-26 15:51:43 +06:00
Hirrolot
b1fac57c94
Merge pull request #500 from teloxide/fix_stop_token_sendness
Fix `polling`'s `StopToken` not being `Send`
2022-01-26 12:34:32 +06:00
Hirrolot
58cb64977b
Merge pull request #501 from teloxide/cleanup_update_listeners_docs
cleanup update listeners docs
2022-01-26 12:34:12 +06:00
Maybe Waffle
e83688d4d3 Add toolchain file and fix formatting 2022-01-25 21:07:30 +03:00
Maybe Waffle
ea5eb16276 Clarify StatefulListener docs a little 2022-01-25 20:38:59 +03:00
Maybe Waffle
755ec44aea Cleanup update_listeners docs 2022-01-25 20:25:19 +03:00
Hirrolot
cd51bba180 Refactor Dispatcher 2022-01-24 13:20:13 +06:00
Hirrolot
7d6c374828 Accept the handler as a parameter in Dispatcher::new 2022-01-23 20:58:55 +06:00
Hirrolot
ad88db96b6 Add UpdateFilterExt 2022-01-23 20:38:12 +06:00
Hirrolot
01c43dd360 Refactor MessageFilterExt 2022-01-23 20:15:27 +06:00
Maybe Waffle
a7182962f7 Fix polling's StopToken not being Send 2022-01-18 21:01:47 +03:00
Waffle Maybe
818a493a4a
Merge pull request #499 from teloxide/its_time_to_stop_ok_polling
Do not retry `get_updates` infinitely while stopping polling listener
2022-01-18 18:41:39 +03:00
Maybe Waffle
993e6e53aa Do not retry get_updates infinitely while stopping polling listener 2022-01-17 14:42:49 +03:00
Hirrolot
559d0b9bc6
Merge pull request #497 from teloxide/remove_rustc_from_issue_templates
Remove "rustc version" from issue templates
2022-01-17 08:46:49 +07:00
Maybe Waffle
559ed0a7bd Remove "rustc version" from issue templates 2022-01-16 22:11:59 +03:00
Hirrolot
cc0e21c9f8 Remove Dispatcher::without_error_handler 2022-01-16 19:51:36 +06:00
Hirrolot
bacea51adc Expose DefaultHandler, UpdateHandler out of dispatcher.rs 2022-01-16 19:50:39 +06:00
Hirrolot
2ad4e9a9f7 Define Dispatcher handlers via a macro 2022-01-16 18:26:37 +06:00
p0lunin
44f3a9e2a5 add dispatching2_features_bot example. 2022-01-12 15:45:01 +02:00
p0lunin
1be9dd9a48 import MessageFilterExt in the prelude2.rs 2022-01-12 15:44:31 +02:00
Hirrolot
c12fae2008
Merge pull request #487 from teloxide/update_teloxide_core_to_master
Update `teloxide-core` to the latest git version
2022-01-12 19:54:16 +07:00
p0lunin
3042dcada5 add Dispatcher::error_handler 2022-01-12 14:07:30 +02:00
p0lunin
bbd8f4d5ec add MessageFilterExt 2022-01-12 14:07:18 +02:00
Maybe Waffle
85ef14867f Fix examples 2022-01-12 14:03:52 +03:00
Maybe Waffle
98855ecebe Update test_example.sh
- Remove BOM
- Fix shebang
- Do not run `cargo check` in parallel
  - `rustc` is good at utilizating cores by default
  - running `cargo check` in parallel messes up the output
2022-01-12 14:01:07 +03:00
p0lunin
7a9ae4fef6 update buttons_bot example 2022-01-12 12:41:19 +02:00
p0lunin
5fb673a87f fix bug with callback_queries_handler 2022-01-12 12:36:42 +02:00
Maybe Waffle
d5392fddab Update teloxide-core yet again 2022-01-12 12:50:35 +03:00
p0lunin
7615fc1392 fix clippy errors 2022-01-06 15:12:57 +02:00
p0lunin
d7386a7dc1 remove old_dispatching feature, add prelude2 and repls2 modules 2022-01-06 14:50:59 +02:00
p0lunin
a8098350fc Merge branch 'dev' into dispatching2
# Conflicts:
#	Cargo.toml
#	examples/dialogue_bot/Cargo.toml
#	examples/inline_bot/src/main.rs
#	src/dispatching/mod.rs
#	src/lib.rs
2022-01-06 14:25:01 +02:00
p0lunin
ca1c1f3e33 update teloxide_macros dependency + update examples and tests using BotDialogue derive macro 2022-01-06 14:11:53 +02:00