Commit graph

23 commits

Author SHA1 Message Date
Hirrolot
f54db300ed Implement the CommandRepl trait
Former-commit-id: 739772929b
2022-10-11 14:54:51 +06:00
Lev Khoroshansky
98150c401a fix: Spacing
Former-commit-id: a9739c7da4
2022-10-09 19:47:45 +03:00
Lev Khoroshansky
fdaddb3902 fix: Sync docs & comments with code
Former-commit-id: 6ebf51efeb
2022-10-09 19:41:52 +03:00
Maybe Waffle
529a316b0f fixup tests and examples that use derive(BotCommands)
Former-commit-id: dc652da1ac
2022-10-05 10:11:50 +04:00
Hirrolot
d3d7cc2fa9 Use same identifiers across the examples
Former-commit-id: a137b41ab2
2022-10-03 17:07:38 +06:00
Hirrolot
b0feab6e9a Use RequestError in REPLs
Former-commit-id: cde6827cee
2022-10-02 21:44:04 +06:00
Hirrolot
05501015ee Stop using AutoSend in the examples and docs
Former-commit-id: 00efbe163a
2022-09-29 09:37:20 +06:00
Hirrolot
5723d7b9b7 Harmonise example bot initial logs
Former-commit-id: b8c3f48c7f
2022-04-27 01:00:08 +06:00
Hirrolot
5000c4cec4 Some fixing stuff lol 2022-04-02 15:34:43 +06:00
Hirrolot
0c1e5c1958 Fix fucked up examples/admin.rs 2022-03-29 02:01:00 +06:00
Hirrolot
d4709c8061 Refactor examples/admin.rs and buttons.rs 2022-03-29 01:55:44 +06:00
Hirrolot
fa5d1f738b Remove support for the old dispatching 2022-03-29 01:55:09 +06:00
Maybe Waffle
6922128cb6 Fix some places with remaining BotCommand (w/o s) 2022-03-27 22:11:17 +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
dbc7633fdb Deprecate enable_logging! in favour of configuring logging yourself 2022-03-21 18:55:34 +04:00
Hirrolot
5a00e970e4 .chat_id() => .chat.id 2022-02-04 19:45:35 +06:00
Hirrolot
ec9f701cf7 Revert ".chat_id() => .chat_id"
This reverts commit 26a28b1918.
2022-02-04 19:44:04 +06:00
Hirrolot
26a28b1918 .chat_id() => .chat_id 2022-02-04 19:38:06 +06:00
Hirrolot
879560f34a Fix the fixes 2022-02-04 19:09:32 +06:00
Hirrolot
242bfef885 Fix merge conflicts 2022-02-03 20:39:32 +06:00
Hirrolot
62934f29bd Harmonise naming convention across the examples 2022-02-02 15:40:22 +06:00
Hirrolot
3b3f5f855f Make all examples just *.rs files 2022-02-02 03:54:00 +06:00
Renamed from examples/admin_bot/src/main.rs (Browse further)