Commit graph

201 commits

Author SHA1 Message Date
p0lunin
e53f9eb2b3 use new system in the dice example 2021-12-03 16:02:57 +02:00
Colin Diener
f5a7187295 Apply builder-pattern to second example result 2021-08-19 11:23:57 -07:00
Colin Diener
1bd47314be Remove dbg! macro in favour of log::error! macro 2021-08-19 11:05:56 -07:00
Colin Diener
43f8e73973 Remove superfluous struct 2021-08-19 11:03:53 -07:00
Colin Diener
f6ad066087 Clarify verbage from message to query 2021-08-19 11:00:58 -07:00
Colin Diener
93c8e00086 Remove unused dispatcher variable, Bot to AutoSend 2021-08-19 10:56:39 -07:00
Colin Diener
ea5b2df251 Include inline bot example 2021-08-18 21:54:32 -07:00
Waffle
18f88cc034 Update dialogue_bot example 2021-07-06 23:15:12 +03:00
Waffle
183486a044 Update heroku and ngrok examples 2021-07-06 15:10:22 +03:00
Waffle
30644ab162 Update admin_bot example 2021-07-05 22:16:29 +03:00
Waffle
c378d6ef4e Make StatefulListener::new a little more convinient
Remove `timeout_hint` from the `StatefulListener::new` function. This parameter
is confusing and is likely to be set to `None` in most cases.

Add a `StatefulListener::new_with_timeout_hint` parameter which is the same as
the old `StatefulListener::new`.
2021-06-25 17:24:31 +03:00
Waffle
76dee997e0 Fix webhook examples (support graceful shutdown) 2021-06-25 16:57:24 +03:00
Hirrolot
c3bcdca549 Don't use .send() in examples/simple_commands_bot 2021-05-20 21:37:53 +06:00
Temirkhan Myrzamadi
9b75378572 Fix the tests and examples 2021-03-28 08:20:35 +06:00
Hirrolot
8522759e68
Get ready for v0.4.0 (#347)
* Get ready for v0.4.0

* Export teloxide_macros as macros in lib.rs

* Use tokio v1.3 in README.md

* Return the feature 'macros' back

* Export teloxide_macros::teloxide in the prelude

* Document the 'macros' feature in README.md

* Update src/lib.rs

Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>

* Update src/prelude.rs

Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>

* Propagate features from teloxide-core

* teloxide-core = 0.2.1

* Fix CI

* Require teloxide-core/auto_send instead of teloxide/auto-send

* default-features = false (teloxide-core)

* Specify each teloxide-core feature separately

* Fix Cargo.toml

* JSON -> Json, CBOR -> Cbor

* Update Cargo.toml

Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>

Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-03-21 18:34:23 +06:00
Temirkhan Myrzamadi
86253edc92 Use Box<dyn Error + Send + Sync> in the examples 2021-03-19 17:58:22 +06:00
Temirkhan Myrzamadi
9a90148114 Fix examples/dialogue_bot 2021-03-18 01:56:41 +06:00
Temirkhan Myrzamadi
f0d4bc320b Fix examples/redis_remember_bot 2021-03-18 01:50:48 +06:00
Temirkhan Myrzamadi
b1e6bc84be Remove examples/sqlite_remember_bot/db.sqlite-journal 2021-03-15 20:23:44 +06:00
Temirkhan Myrzamadi
34a2eee1fa Apply review suggestions 2021-03-15 09:22:32 +06:00
Temirkhan Myrzamadi
1af0bfdcbc Fix the examples 2021-03-13 22:13:24 +06:00
Temirkhan Myrzamadi
30458ab724 Oops, push the examples too 2021-03-06 03:24:10 +06:00
Sergey Levitin
e456e525d8 Update authors of sqlite_remember_bot 2020-10-24 20:18:13 +03:00
Sergey Levitin
5bb5357183 Gardening + update docs 2020-10-24 20:05:48 +03:00
Sergey Levitin
ef2a3b36ae Add a bot example for SqliteStorage 2020-10-24 19:57:51 +03: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
05e32336fa Add requests::respond 2020-08-02 13:08:43 +06:00
DCjanus
7b9f7e8690 fix example code 2020-08-02 12:11:09 +08:00
Temirkhan Myrzamadi
b3aa539c4d Download the master branch of teloxide-macros 2020-08-01 17:52:50 +06:00
Temirkhan Myrzamadi
e26c8b6e94
Merge pull request #243 from teloxide/feature/arbitrary-transition-result-types
Unpair TransitionOut from concrete Error type resolves #242
2020-08-01 16:14:26 +06:00
Temirkhan Myrzamadi
8b14fb5122 Download teloxide-macros from git in the examples 2020-08-01 16:07:01 +06:00
Temirkhan Myrzamadi
71414b812f
Update examples/README.md 2020-08-01 15:16:28 +06:00
Temirkhan Myrzamadi
90a65c0f9e
Update examples/README.md 2020-08-01 15:15:45 +06:00
Temirkhan Myrzamadi
1e7919455b Import lazy_static into examples/shared_state_bot 2020-07-31 21:49:22 +06:00
Temirkhan Myrzamadi
09d3db9f9b Fix Cargo.toml files in the examples 2020-07-31 21:43:28 +06:00
Temirkhan Myrzamadi
e2d536bc91 Update examples/dialogue_bot 2020-07-31 18:47:20 +06:00
Temirkhan Myrzamadi
7097dd4f34 'Insert here your bot's name' -> 'Your bot's name here' 2020-07-31 00:47:26 +06:00
Temirkhan Myrzamadi
90338f9bac Update examples/heroku_ping_pong_bot & ngrok 2020-07-31 00:38:37 +06:00
Temirkhan Myrzamadi
02c71f72cb Use the generic HandlerE in REPLs 2020-07-31 00:16:21 +06:00
Temirkhan Myrzamadi
c39586ef10 Add commands_repl 2020-07-30 20:07:46 +06:00
Temirkhan Myrzamadi
1989dcbe04 UpdateWithCx::send_dice -> answer_dice 2020-07-30 19:29:39 +06:00
Temirkhan Myrzamadi
c81ec1602a Remove repl from prelude 2020-07-30 19:25:56 +06:00
Temirkhan Myrzamadi
67af702a81 Use repl in examples/dices_bot 2020-07-30 19:07:58 +06:00
Temirkhan Myrzamadi
e74196a62f Replace examples/ping-pong-bot with examples/dices-bot 2020-07-29 16:02:37 +06:00
Temirkhan Myrzamadi
a6eac93043 Add UpdateWithCx::send_dice 2020-07-29 15:54:43 +06:00
Temirkhan Myrzamadi
2685123316 Remove #[derive(Default)] from StartState in examples/dialogue_bot 2020-07-28 23:37:26 +06:00
Temirkhan Myrzamadi
adce7a4773 Remove the smart-default dependency from examples/redis_remember_bot 2020-07-28 23:33:53 +06:00
Temirkhan Myrzamadi
bdd2ffad2a .unwrap() -> .expect(std::convert::Infallible) 2020-07-28 22:18:43 +06:00
Temirkhan Myrzamadi
a3c67f1838 Update examples/dialogue_bot 2020-07-28 21:00:44 +06:00
Temirkhan Myrzamadi
709fe18ade Use teloxide-macros v0.3.2 2020-07-27 02:42:08 +06:00