Commit graph

2531 commits

Author SHA1 Message Date
Maybe Waffle
8ae3222409 Disable redis tests outside of CI
...to not annoy people like me who don't have redis open while testing
2022-03-27 22:10:50 +04:00
Maybe Waffle
484d1ccd83 Fixup documentation 2022-03-27 22:10:50 +04:00
Maybe Waffle
86cc3d782f Add CommandDescription[s]
Add two new types - `CommandDescription` and `CommandDescriptions`, make
`BotCommands` return the latter.
2022-03-27 22:10:50 +04:00
Maybe Waffle
b3b8073a12 Rename BotCommand -> BotCommands (the trait)
This removes the ambiguity with `types::BotCommand` and also the new
name just makes more sense, since this trait is usually implemented for
enums that can be many different commands and not a single one.

Note: this requires changes in the `teloxide-macro` crate.
2022-03-27 22:10:50 +04:00
Maybe Waffle
8116059ba3 Document BotCommand methods 2022-03-27 22:10:50 +04:00
Waffle Maybe
5bd134bc21
Merge pull request #568 from teloxide/stop_send
Require that `UpdateListener::StopToken` is `Send`
2022-03-27 21:48:17 +04:00
Maybe Waffle
ceb2415351 Require that UpdateListener::StopToken is Send 2022-03-27 13:29:17 +04:00
Hirrolot
10b1e045c7
Merge pull request #569 from teloxide/pin-nightly
Pin `nightly-2022-01-17` in the CI
2022-03-25 02:26:18 -07:00
Waffle Maybe
7a54b347f7
Fix name of the nightly CI job 2022-03-25 13:19:57 +04:00
Hirrolot
2c97e94e1e
Pin nightly for Netlify 2022-03-25 11:48:44 +06:00
Hirrolot
ac653dd8c4
Pin nightly-2022-01-17 in the CI 2022-03-25 11:35:25 +06:00
Hirrolot
c35f4f42ce
Merge pull request #563 from teloxide/v0.7.2
Release v0.7.2
2022-03-23 05:32:31 -07:00
Hirrolot
e3be9cc9a8
Merge pull request #564 from teloxide/update-docs
Documen and test all command renaming rules
2022-03-23 05:32:14 -07:00
Hirrolot
da74a78cc1 Test all command rename rules 2022-03-23 18:23:39 +06:00
Waffle Maybe
85287ffad3
Update CHANGELOG.md 2022-03-23 10:47:56 +04:00
Hirrolot
85a04553a5 Document new command renaming rules 2022-03-23 08:03:15 +06:00
Hirrolot
b8c1d1fb48
Merge pull request #562 from teloxide/pr-template
Create `pull_request_template.md`
2022-03-22 10:55:43 -07:00
Hirrolot
767aeb0b65
Update .github/pull_request_template.md
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-03-22 18:37:59 +06:00
Hirrolot
7aa0439afd Release v0.7.2 2022-03-22 11:40:53 +06:00
Hirrolot
e3d19608ac
Create pull_request_template.md 2022-03-22 11:14:31 +06:00
Waffle Maybe
a4c147538b
Merge pull request #559 from teloxide/deprecate_enable_logging
Deprecate `enable_logging!` in favour of configuring logging yourself
2022-03-21 21:12:04 +04:00
Hirrolot
3788f8bb6a
Update examples/README.md 2022-03-21 23:04:18 +06:00
Waffle Maybe
3561ca5068
Merge pull request #552 from teloxide/correct-open-issue-suggestion
Correct open issue suggestion
2022-03-21 20:18:39 +04:00
Hirrolot
de2974f052 Correct open issue suggestion (dispatching2) 2022-03-21 22:10:45 +06:00
Hirrolot
43a9b2d327 Merge branch 'dev' into correct-open-issue-suggestion 2022-03-21 22:09:52 +06:00
Maybe Waffle
22e5165f89 Remove mentions of enable_logging! from documentation/readme 2022-03-21 19:42:55 +04:00
Waffle Maybe
29415a6d87
Update CHANGELOG.md
Co-authored-by: Hirrolot <hirrolot@gmail.com>
2022-03-21 19:31:44 +04:00
Hirrolot
de1bf18da5
Merge pull request #560 from teloxide/disable-repls2-warns
Disable `repls2` unhandled update warnings
2022-03-21 08:21:22 -07:00
Hirrolot
1f95c1d2b3 Don't warn abount unhandled updates in repls2 2022-03-21 21:11:46 +06:00
Maybe Waffle
dbc7633fdb Deprecate enable_logging! in favour of configuring logging yourself 2022-03-21 18:55:34 +04:00
Hirrolot
81fbb1769c
Merge pull request #558 from teloxide/log-dispatcher-error
Log `UpdateKind::Error` in `dispatching2`
2022-03-21 07:48:38 -07:00
Hirrolot
91f8eb6acc Log UpdateKind::Error in dispatching2 2022-03-21 20:40:04 +06:00
Hirrolot
e26adcf688
Merge pull request #546 from teloxide/merge-redis-sqlite-examples
Merge `examples/sqlite_remember.rs` with `redis_remember.rs`
2022-03-21 07:26:31 -07:00
Hirrolot
be143a3f6e Move ErasedStorage upper 2022-03-21 20:18:36 +06:00
Hirrolot
7a7667fff9 Changelogify ?Sized in HandlerExt::enter_dialogue 2022-03-21 20:09:06 +06:00
Hirrolot
cf8c1b78b7 Rewrite examples/db_remember.rs to use ErasedStorage 2022-03-21 20:06:32 +06:00
Hirrolot
873ed87930 Merge branch 'dev' into merge-redis-sqlite-examples 2022-03-21 18:21:15 +06:00
Hirrolot
c2c5e463fc
Merge pull request #555 from teloxide/erased-storage
Implement `ErasedStorage`
2022-03-21 05:17:11 -07:00
Hirrolot
0b6e7acf9f Favour a default function instead of StorageExt 2022-03-21 18:09:36 +06:00
Hirrolot
c6f0cd9404 Implement ErasedStorage 2022-03-20 09:06:21 +06:00
Waffle Maybe
9d9323648d
Correct open issue suggestion 2022-03-17 22:44:45 +04:00
Waffle Maybe
b078107694
Merge pull request #537 from TheAwiteb/dev
🧹 fix case sensitive
2022-03-14 19:09:20 +04:00
TheAwiteb
b62d85f2b6
Fix parse_command_with_prefix case sensitive 2022-03-14 17:49:45 +03:00
Hirrolot
a8fbee5914 Simplify the example usage guide 2022-03-12 14:36:31 +06:00
Hirrolot
7a932c8fd9 Merge examples/sqlite_remember.rs with redis_remember.rs 2022-03-12 14:33:38 +06:00
Hirrolot
2bf6c790fd
Merge pull request #543 from teloxide/dev
Merge v0.7.1
2022-03-09 21:20:21 +06:00
Hirrolot
108f4deb3d
Merge pull request #542 from teloxide/v0.7.1
Release v0.7.1
2022-03-09 21:11:38 +06:00
Hirrolot
3ad74b6a9b Release v0.7.1 2022-03-09 20:42:12 +06:00
Hirrolot
6ec7c8f699
Merge pull request #541 from teloxide/fix_features
Fix compilation with non-default features
2022-03-08 15:10:48 +06:00
Maybe Waffle
31ff3a468d Fix compilation with non-default features 2022-03-08 12:20:01 +04:00