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
a5419f3475
fix: Grammar & typos
...
Former-commit-id: b3fe220d99
2022-10-09 19:42:20 +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
53be9d0e92
Reorder parameters in the examples
...
In reordering the parameters, I stick the following principle: place parameters from least changing to most changing. Thus, we have config and bot right from the beginning, next a dialogue with a possible payload, and next updates such as messages, inline queries, etc. This principle is used in languages with a native support for currying, although in Rust people appear to order parameters arbitrarily, so this commit is mostly for the sake of consistency.
Former-commit-id: 5922984f6c
2022-10-03 17:54:06 +06: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
Maybe Waffle
f2c50b7dba
Remove {token}
from webhook url in heroku example
...
Former-commit-id: 78a96381dc
2022-09-25 01:06:11 +04:00
Maybe Waffle
f10bb5c3e0
Properly handle callback queries in examples/buttons.rs
...
Former-commit-id: 376ffc85f9
2022-09-12 16:50:59 +04:00
Maybe Waffle
ead0464ddc
Fix command parsing in examples/button.rs
...
Former-commit-id: f39180543e
2022-09-08 18:36:08 +04:00
Hirrolot
3dd8787f13
Adjust imports a little bit in examples/purchase.rs
...
Former-commit-id: a22c91df6c
2022-07-21 16:53:52 +06:00
Maybe Waffle
11231655c2
Move ctrlc handler enable function to DispatcherBuilder
...
This helps with consistency -- every setting is changed in builder.
Also `Self -> Self` function sometimes plays more nicely with borrowck.
Former-commit-id: dd4af30727
2022-07-21 13:32:05 +04:00
Hirrolot
411c851a2f
Update the dispatching example explanation
...
Former-commit-id: bc8b86181f
2022-07-19 19:34:35 +06:00
Hirrolot
6331fe50cb
Use #[default]
for State::Start
in dialogues
...
Former-commit-id: 14e9fd2197
2022-07-04 21:47:57 +06:00
Hirrolot
16cfdfd2e6
Merge pull request #665 from teloxide/update-shared-state-example
...
Use the new DI in `examples/shared_state.rs`
Former-commit-id: 3b0e3f3a0c
2022-06-29 22:38:15 +06:00
Alessio
5e8682da8c
Update the heroku example to use 0.0.0.0 as ip
...
On heroku we canno't bind on 127.0.0.1
Former-commit-id: c95203759a
2022-06-29 15:10:45 +02:00
Hirrolot
d3f1e4058c
Use Arc<AtomicU64>
in examples/shared_state.rs
...
Former-commit-id: a48f6c8a44
2022-06-29 01:49:49 +06:00
Maybe Waffle
b8004a803a
use built-in webhook support in heroku example
...
Former-commit-id: 0b582882eb
2022-06-09 18:00:15 +04:00
Hirrolot
1d1ff7db5a
Merge pull request #613 from teloxide/dptree-case
...
Deprecate `teloxide::handler!` in favour of `dpree::case!`
Former-commit-id: 0d36a1e2b7
2022-04-27 16:05:15 +06:00
Hirrolot
deb992c787
Deprecate teloxide::handler!
in favour of dptree::case!
2022-04-27 15:16:34 +06:00
Hirrolot
fb6699e555
Revert "Replace examples/dispatching_features.rs
with examples/purchase.rs
"
...
This reverts commit 018174790e
[formerly 43a9bac87d
].
Former-commit-id: 402764e363
2022-04-27 08:02:18 +06:00
Hirrolot
018174790e
Replace examples/dispatching_features.rs
with examples/purchase.rs
...
Former-commit-id: 43a9bac87d
2022-04-27 01:01:15 +06:00
Hirrolot
5723d7b9b7
Harmonise example bot initial logs
...
Former-commit-id: b8c3f48c7f
2022-04-27 01:00:08 +06:00
Hirrolot
34ebbe6bef
examples/dices.rs
=> examples/throw_dice.rs
...
Former-commit-id: 2537f06464
2022-04-27 00:56:51 +06:00
Hirrolot
bbb3ac6e2d
examples/simple_commands.rs
=> examples/command.rs
...
Former-commit-id: 5ecfd3d810
2022-04-27 00:54:37 +06:00
Hirrolot
51d00ec351
Move the dispatch schema to a function (examples/purchase.rs
)
2022-04-26 20:50:55 +06:00
Hirrolot
e5aafe3245
Separate handlers in examples/purchase.rs
2022-04-25 19:20:47 +06:00
Hirrolot
df0d13c42b
Add teloxide::filter_command
2022-04-25 19:16:05 +06:00
Hirrolot
7fc1f6f180
Update teloxide-core to v0.6.0
2022-04-25 18:44:27 +06:00
Hirrolot
52678b187c
Simplify InlineKeyboardButton
construction
2022-04-25 01:38:55 +06:00
Hirrolot
f555d1d2d3
Prettify examples/purchase.rs
by a separate command handler
2022-04-25 01:30:01 +06:00
Hirrolot
c3d5ed9fb7
Use teloxide::handler!
for command handling too
2022-04-25 01:23:05 +06:00
Hirrolot
fd31cba6d7
Restrict all purchase bot's commands by State::Start
2022-04-24 23:30:22 +06:00
Hirrolot
ae48a11b3f
Use dialogue.chat_id()
in examples/purchase.rs
2022-04-24 23:11:47 +06:00
Hirrolot
d7b6229516
Call dialogue.exit()
after a successful purchase
2022-04-23 23:52:43 +06:00
Hirrolot
a514c845cb
Simplify examples/purchase.rs
by sharing filters
2022-04-23 22:56:45 +06:00
Hirrolot
bc0e9b19a4
ProductChosen
=> ReceiveProductChoice
2022-04-23 22:45:43 +06:00
Hirrolot
a60e19a8c2
Implement dialogue::enter
2022-04-23 00:11:27 +06:00
Hirrolot
4a4990e207
Update the FAQ
2022-04-22 23:50:19 +06:00
Hirrolot
96b8df4bdd
Add examples/purchase.rs
2022-04-22 23:42:50 +06:00
Maybe Waffle
2aa59d760a
Update teloxide-core
0.4.5
-> 0.5.0
2022-04-13 15:58:29 +04:00
Maybe Waffle
0bddb1d927
Update changelog
2022-04-05 16:37:22 +04:00
Maybe Waffle
e951af7abe
Fix ngrok_ping_pong example required-features
...
...and info! message
2022-04-05 16:36:31 +04:00
Maybe Waffle
37d1252bc9
Use new built-in webhooks in ngrok example
...
I've also changed the port from 80 to 8443, since 80 usually requires
root privileges.
2022-04-05 16:36:22 +04:00
Hirrolot
5838b31834
Capture identifier in format strings (examples/
)
2022-04-03 16:06:44 +06:00
Hirrolot
b88f73b35f
Fix examples/dialogue.rs
according to teloxide::handler!
2022-04-03 01:50:53 +06:00
Hirrolot
62d4440c63
Fix examples/db_remember.rs
2022-04-02 21:41:04 +06:00
Hirrolot
9bb2a85aba
Merge branch 'dev' into teloxide-handler
2022-04-02 21:32:59 +06:00