Serge Barinov
09e7597fa7
fix: escape user full name for mention
2022-06-05 09:42:39 +03:00
Hirrolot
ee819548c0
Update the documentation of BotCommands
2022-05-26 23:20:32 +06:00
Maybe Waffle
f02eb2b679
Switch to a new module naming system
2022-05-06 23:37:58 +04:00
Maybe Waffle
dd2feb179f
Remove mentions of the removed "frunk" feature
2022-05-05 16:30:07 +04:00
Maybe Waffle
2aa59d760a
Update teloxide-core
0.4.5
-> 0.5.0
2022-04-13 15:58:29 +04:00
Hirrolot
fa5d1f738b
Remove support for the old dispatching
2022-03-29 01:55:09 +06:00
Maybe Waffle
ed40e2ad3b
fix clippy
2022-03-27 22:11:17 +04:00
Maybe Waffle
6922128cb6
Fix some places with remaining BotCommand
(w/o s
)
2022-03-27 22:11:17 +04:00
Maybe Waffle
91bea5be5e
Apply suggestions from the review
...
- remove `username_from_bot`
- add `username_from_me`
2022-03-27 22:11:17 +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
Hirrolot
85a04553a5
Document new command renaming rules
2022-03-23 08:03:15 +06:00
TheAwiteb
b62d85f2b6
Fix parse_command_with_prefix
case sensitive
2022-03-14 17:49:45 +03:00
Maybe Waffle
ccd87a6ed3
Remove doc(cfg)
annotations in favour of feature(doc_auto_cfg)
2022-02-10 16:39:21 +03:00
Maybe Waffle
24c8035b3c
Refactor ShutdownToken
2022-02-04 23:52:52 +03:00
Hirrolot
07b844db99
Add BotCommand::bot_commands
2022-02-05 02:18:47 +06:00
p0lunin
7615fc1392
fix clippy errors
2022-01-06 15:12:57 +02:00
p0lunin
3f1d1360c6
fmt
2021-12-11 13:11:44 +02:00
p0lunin
4752b22c43
1. Change feature dispatching2 -> old_dispatching.
...
2. Added command repls.
3. Added function BotCommand::ty() due to new restrictions in the command repls.
2021-12-11 12:46:44 +02:00
dracarys18
1f1a3abd6b
utils: Change the user_id type to i64
...
user_id is of type i64 in User struct (bd104a0a08/src/types/user.rs (L10)
)
Signed-off-by: dracarys18 <karthihegde010@gmail.com>
2021-07-03 17:31:57 +05:30
Temirkhan Myrzamadi
c0e3064785
Fmt
2021-05-10 12:13:07 +06:00
Hirrolot
7f578a8918
Paraphrase src/utils/command.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-05-09 23:06:35 -07:00
Temirkhan Myrzamadi
cf3639f68b
Document the "off" value as a command description
2021-05-10 08:55:43 +06:00
Waffle Lapkin
101528e453
Resolve fixme ( #350 )
...
* Update redis
* Resolve fixme(waffle) related to building docs
* Fix broken links
* Reexport teloxide_core::prelude as `no_inline`
2021-03-22 00:43:19 +06:00
Temirkhan Myrzamadi
6102a02ed4
Integrate teloxide-core
2021-03-06 03:18:03 +06:00
Waffle Lapkin
2a8f091495
fix fmt
2021-01-13 16:24:23 +03:00
Waffle Lapkin
dbc03c0769
Merge branch 'dev' into fix-serde-export-master
2021-01-13 16:20:25 +03:00
Temirkhan Myrzamadi
086789e5ca
serde::export -> std::fmt
2021-01-13 11:31:08 +06:00
Lachezar Lechev
508f34148b
replace occurences of docsrs
and add FIXME
2020-10-26 12:12:06 +02:00
Lachezar Lechev
9ae81ac978
add doc(cfg) attributes
2020-10-25 17:55:04 +02:00
Jaslo Ziska
eed1bbb0fc
Conditionally add teloxide-macros crate and reexport macros
...
This commit adds the feature "macros" which conditionally adds the
teloxide-macros crate and reexports its macros.
All (doc) tests using these macros are also conditionally enabled now.
Also change examples accordingly.
This commit solves https://github.com/teloxide/teloxide/issues/283
2020-10-02 20:43:26 +02:00
Temirkhan Myrzamadi
6bb8482f3d
Respect TELOXIDE_PROXY in Bot::from_env & BotBuilder
2020-07-31 21:34:48 +06:00
Temirkhan Myrzamadi
3ddd5d9d2b
TFix naming in UpState
2020-07-29 13:59:14 +06:00
Temirkhan Myrzamadi
fb7ea5128e
Remove the redundant T1Repr type parameter from UpState::up
2020-07-29 04:52:02 +06:00
Temirkhan Myrzamadi
a5707fd713
Move UpState to utils
2020-07-28 23:48:46 +06:00
Temirkhan Myrzamadi
38a1f470ad
Use the default characters per line limit
2020-07-26 23:47:02 +06:00
Temirkhan Myrzamadi
4c78414771
Fix the docs of client_from_env
2020-07-25 04:08:04 +06:00
Temirkhan Myrzamadi
0fae235597
Use sound_bot in client_from_env
2020-07-25 03:57:38 +06:00
Temirkhan Myrzamadi
5f67d633bc
Refer to the latest version of reqwest
2020-07-25 01:04:42 +06:00
Temirkhan Myrzamadi
2a684f9906
Document client_from_env
2020-07-25 01:02:46 +06:00
Temirkhan Myrzamadi
3b26f747b7
Export client_from_env into utils
2020-07-25 00:55:36 +06:00
Dmytro Polunin
2e6ca03d5c
Added Sync, Send, 'static bounds on Box<dyn Error>
2020-07-08 13:16:25 +03:00
Temirkhan Myrzamadi
5f9e0b46b2
Fix impl Error for ParseError
2020-07-04 00:33:35 +06:00
p0lunin
82439c2a4c
added impl Display, Error for ParseError
2020-07-03 21:20:33 +03:00
p0lunin
5216347ece
fixed wrong documentation
2020-07-03 20:31:39 +03:00
p0lunin
9944524e34
added Box<dyn Error> in IncorrectFormat error
2020-06-24 19:18:12 +03:00
Temirkhan Myrzamadi
e47a73088d
Add a comment about tests (src/utils/command.rs)
2020-06-07 15:39:12 +06:00
p0lunin
1e71268748
fmt
2020-06-06 21:32:51 +03:00