Commit graph

240 commits

Author SHA1 Message Date
Hirrolot
a35667ac2b Prepare for v0.5.1 2021-08-01 20:45:59 +06:00
Hirrolot
72e9821b15
Add the asynchronous category to Cargo.toml 2021-07-08 15:31:35 +06:00
Hirrolot
674b1f974a Prepare for v0.5.0 2021-07-08 15:22:13 +06:00
Waffle
81775a7217 Show "This is supported on feature="..." only." in socs of reexported teloxide-core items 2021-07-07 20:27:38 +03:00
Waffle
369e43aa7e Update dependencies 2021-07-05 21:29:36 +03:00
Waffle
1795cb22c2 setup ^C handler in repls 2021-06-26 17:19:56 +03:00
Waffle
f0de55ad55 Add Dispatcher::setup_ctrlc_handler function.
This function sets up `^C` handler which shuts down dispatching.
2021-06-25 16:57:24 +03:00
Hirrolot
f4260ed078 Replace lockfree with flurry 2021-06-18 20:53:03 +06:00
Waffle
0eef5b8487 Enable TLS by default
We use HTTPS which doesn't work without TLS implementation.
2021-05-18 18:52:29 +03:00
Waffle
02a4df4b5c Switch to developement teloxide-core version 2021-05-15 23:37:14 +03:00
Waffle
9b34586a04 Normalize docs 2021-05-15 23:37:14 +03:00
Diego Roig
6724f265e3 remove reqwest dependency 2021-03-26 17:34:39 -05: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
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
be7bec6fa9 Support UpdateKind::{MyChatMember, ChatMember} 2021-03-17 23:36:51 +06:00
Temirkhan Myrzamadi
5f96da0a5f Fix the tests 2021-03-13 23:05:50 +06:00
Temirkhan Myrzamadi
1af0bfdcbc Fix the examples 2021-03-13 22:13:24 +06:00
Temirkhan Myrzamadi
6102a02ed4 Integrate teloxide-core 2021-03-06 03:18:03 +06:00
Temirkhan Myrzamadi
f33428be03 Update the dependencies 2021-02-22 08:14:33 +06:00
Waffle Lapkin
dbc03c0769
Merge branch 'dev' into fix-serde-export-master 2021-01-13 16:20:25 +03:00
Temirkhan Myrzamadi
433b4df614 v0.3.4 2021-01-13 11:32:39 +06:00
Temirkhan Myrzamadi
57b2af965a Remove the 'runtime-tokio' feature of sqlx (Cargo.toml) 2020-11-24 21:26:16 +06:00
Temirkhan Myrzamadi
71df5bad3e Specify 'runtime-tokio-native-tls' for sqlx (Cargo.toml) 2020-11-24 21:17:49 +06:00
Waffle Lapkin
89ae390dfe
Merge pull request #294 from teloxide/sqlite_storage
Sqlite storage v2
2020-11-04 12:01:21 +03:00
Temirkhan Myrzamadi
5abb6c6dbd 0.3.2 -> 0.3.3 (Cargo.toml) 2020-10-30 13:45:22 +06:00
Lachezar Lechev
656db8273b
Update Cargo.toml docs.rs metadata
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2020-10-26 07:27:13 +02:00
Lachezar Lechev
43cdedb06a
Readme "nightly" feature comment update 2020-10-25 18:19:44 +02:00
Lachezar Lechev
9ae81ac978
add doc(cfg) attributes 2020-10-25 17:55:04 +02:00
Sergey Levitin
5e1fe064cd Add tests for sqlite storage 2020-10-24 19:51:55 +03:00
Temirkhan Myrzamadi
7b1fbabdcb
Merge pull request #301 from teloxide/master
v0.3.2
2020-10-23 11:58:02 +06:00
Temirkhan Myrzamadi
3c04d573f9 Prepare for v0.3.2 2020-10-23 08:23:09 +06:00
Sergey Levitin
e751624d6f Implement sqlite storage methods #144 2020-10-19 02:18:21 +03:00
Sergey Levitin
900ae4f630 Merge branch 'dev' of github.com:teloxide/teloxide into sqlite 2020-10-19 00:15:21 +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
Waffle Lapkin
814adabdb6
Merge branch 'dev' into v0.3.1_release 2020-09-26 19:01:16 +03:00
Waffle
04f8ed5df7 v0.3.1 release 2020-08-25 17:45:16 +03:00
Waffle
981ba237c9 redis test fix & beta/nightly ci
This commit fixes redis storage test, those were not ran before.
Also, introduces beta&nightly tests to CI
2020-08-12 23:53:58 +03:00
Waffle
3157305105 add automatic test of code blocks from readme 2020-08-12 23:21:13 +03:00
Waffle
00e39e8d35 enable all features for docs.rs doc build 2020-08-12 22:48:36 +03:00
Temirkhan Myrzamadi
b3aa539c4d Download the master branch of teloxide-macros 2020-08-01 17:52:50 +06:00
Kirill Mironov
ffb5f29362 Allow for custom error types in TransitionOut 2020-08-01 00:18:52 +03:00
Temirkhan Myrzamadi
b68d03ae83
v0.3.0 Cargo.toml 2020-07-31 21:54:52 +06:00
Temirkhan Myrzamadi
62a116dbc0 Use only required tokio-util features 2020-07-31 19:58:41 +06:00
Temirkhan Myrzamadi
337b89112b Use only required Tokio features 2020-07-31 19:42:11 +06:00
S-Y-rat
c09eca1e39 Switch from rusqlite to sqlx with sqlite feature enabled 2020-07-31 15:59:26 +03:00
S-Y-rat
d0ab14d593 Make sqlite-storage visible 2020-07-31 15:20:27 +03:00
Temirkhan Myrzamadi
3a0a005265 Use frunk v0.3.1 2020-07-28 20:58:23 +06:00
Temirkhan Myrzamadi
709fe18ade Use teloxide-macros v0.3.2 2020-07-27 02:42:08 +06:00
Temirkhan Myrzamadi
71f38bcb92 Small refinements 2020-07-26 13:18:29 +06:00
Temirkhan Myrzamadi
094a95e8d8 Add append_field 2020-07-26 03:10:48 +06:00
Temirkhan Myrzamadi
7e4014260a Fix Cargo.toml 2020-07-24 19:40:07 +06:00
Temirkhan Myrzamadi
433bab7617 Merge branch 'fix-bot-silence' of https://github.com/teloxide/teloxide into fix-bot-silence 2020-07-16 21:04:34 +06:00
Temirkhan Myrzamadi
12b2043e74 Fix build 2020-07-16 18:59:33 +06:00
Temirkhan Myrzamadi
f3e482d47e
serde_json = 1.0.55 2020-07-11 02:10:52 +06:00
Temirkhan Myrzamadi
8059f64044
Update Cargo.toml 2020-07-11 02:07:12 +06:00
Temirkhan Myrzamadi
178b56ab1c
Download reqwest from gh 2020-07-11 02:06:27 +06:00
Temirkhan Myrzamadi
d6298c2329 Temporarily use Hirrolot/redis-rs 2020-07-11 00:28:24 +06:00
Temirkhan Myrzamadi
64331f1df1 Upgrade the dependencies 2020-07-10 23:55:12 +06:00
p0lunin
8bbc3aa302 changed version of teloxide-macros 2020-07-10 13:35:18 +03:00
Temirkhan Myrzamadi
33910864c7
Merge branch 'master' into redis 2020-07-04 20:34:07 +06:00
Temirkhan Myrzamadi
01439aae37
Update Cargo.toml 2020-07-04 13:55:25 +06:00
p0lunin
58cb5ad152 added test for descriptions="off" attribute 2020-07-04 10:44:42 +03:00
p0lunin
c16c316679 changed source of macros from dev branch to 0.3.0 version 2020-07-03 21:11:32 +03:00
p0lunin
4ceb1253dd Merge branch 'master' of https://github.com/teloxide/teloxide into commands
 Conflicts:
	examples/admin_bot/src/main.rs
	examples/simple_commands_bot/src/main.rs
	src/dispatching/dispatcher_handler_rx_ext.rs
2020-07-03 20:11:25 +03:00
Temirkhan Myrzamadi
fb6156a3b9
Merge branch 'master' into redis 2020-07-01 18:53:39 +06:00
Temirkhan Myrzamadi
0ac679c443 Remove the frunk dependency 2020-07-01 18:52:53 +06:00
p0lunin
9944524e34 added Box<dyn Error> in IncorrectFormat error 2020-06-24 19:18:12 +03:00
Temirkhan Myrzamadi
7a232a4c51
Merge branch 'master' into redis 2020-06-19 08:55:19 +03:00
p0lunin
1e71268748 fmt 2020-06-06 21:32:51 +03:00
Temirkhan Myrzamadi
963218bba0 Use a coproduct as a dialogue FSM 2020-05-24 14:19:46 +06:00
Josh Stone
b7a551a937 Upgrade tokio-util to 0.3 2020-04-29 14:30:38 -07:00
p0lunin
d5f3864921 wip 2020-04-25 20:16:27 +03:00
Maximilian Siling
798102a7d7 Add Redis storage & example bot using it 2020-04-19 18:31:23 +03:00
Temirkhan Myrzamadi
9f18045d15 Update teloxide-macros (Cargo.toml) 2020-02-25 03:24:08 +06:00
Temirkhan Myrzamadi
d5aa0f9419 Update Cargo.toml to v0.2.0 2020-02-25 03:05:15 +06:00
p0lunin
8cbe9d8aff fixed parse_command: now call parse_command_with_prefix("/", ...) 2020-02-24 16:16:07 +02:00
p0lunin
93a2376e92 remove either from dependencies 2020-02-24 16:15:26 +02:00
p0lunin
15d5a02154 added split by '@' 2020-02-20 00:10:00 +02:00
Temirkhan Myrzamadi
e245d9cb62 Fix Cargo.toml 2020-02-19 23:14:45 +06:00
Temirkhan Myrzamadi
a2a8d47943 Temporarily remove 2 contributors (Cargo.toml) 2020-02-19 23:11:36 +06:00
Temirkhan Myrzamadi
17017974e1 Fix Cargo.toml 2020-02-19 22:55:24 +06:00
Temirkhan Myrzamadi
2aca6c2011 Fix Cargo.toml 2020-02-19 22:52:18 +06:00
Temirkhan Myrzamadi
22555f367f Trying to fix Cargo.toml 2020-02-19 22:46:06 +06:00
Temirkhan Myrzamadi
a301937bf1 Fix Cargo.toml again 2020-02-19 22:42:21 +06:00
Temirkhan Myrzamadi
f9142b9e72 Fix Cargo.toml, teloxide-macros/Cargo.toml 2020-02-19 22:40:49 +06:00
Temirkhan Myrzamadi
4c3231b226 Fix the shit to eventually publish 2020-02-19 22:37:12 +06:00
Temirkhan Myrzamadi
acc7393d75 Specify the version of teloxide-macros (Cargo.toml) 2020-02-19 22:31:26 +06:00
Temirkhan Myrzamadi
444109e755 Add the authors to Cargo.toml 2020-02-19 22:05:04 +06:00
Temirkhan Myrzamadi
e91d79a5f9 Remove native-tls-vendored (Cargo.toml) 2020-02-19 05:46:54 +06:00
Temirkhan Myrzamadi
9eda683fc5 Make handlers accept streams 2020-02-18 04:19:16 +06:00
Temirkhan Myrzamadi
c648efc96c Add more info to Cargo.toml 2020-02-14 17:10:49 +06:00
Temirkhan Myrzamadi
7d142f1f06 Fix the tests 2020-02-14 14:41:03 +06:00
Temirkhan Myrzamadi
42e2f3fb42 Refactor 2020-02-13 23:23:22 +06:00
Temirkhan Myrzamadi
726a46b5ab Remove unnecessary dependencies 2020-02-13 20:21:23 +06:00
Temirkhan Myrzamadi
7a7254b8a1 Add BotBuilder 2020-02-13 20:12:24 +06:00
Temirkhan Myrzamadi
0077b99ef6
Merge branch 'dev' into useful_functions 2020-02-03 17:14:59 +06:00
Temirkhan Myrzamadi
f9d83832f3
Merge branch 'dev' into improve-requests 2020-01-24 07:16:21 +06:00
Temirkhan Myrzamadi
9cd11d02d7 Fix the docs of the rest of requests 2020-01-22 01:41:32 +06:00
p0lunin
f6777f80a9 Merge branch 'dev' of https://github.com/teloxide/teloxide into filters
 Conflicts:
	src/dispatching/mod.rs
2020-01-21 10:43:10 +02:00
p0lunin
9c020a23cb remove feature regex-filter 2020-01-21 10:42:43 +02:00
Temirkhan Myrzamadi
2b77087aac Return examples/ping_pong_bot.rs back 2020-01-19 19:45:48 +06:00
p0lunin
db5145911b added parse_command, TelegramCommandEnum trait, parse_command_into_enum 2020-01-18 15:14:31 +02:00
p0lunin
c3d90abe7d added RegexFilter 2020-01-17 14:54:51 +02:00
p0lunin
d1eedece40 mime 2020-01-11 21:46:13 +02:00
Temirkhan Myrzamadi
24d76b59b3 Update the dependencies 2020-01-05 02:35:25 +06:00
Temirkhan Myrzamadi
52f1b6d8a9 Use Either instead of ErrorKind 2019-12-31 14:22:15 +06:00
Temirkhan Myrzamadi
00dc72e412
Merge pull request #100 from teloxide/new_fmt
Fixes of build on CI (fmt, never-ty)
2019-12-27 02:05:32 +06:00
Waffle
6eb91f04a8 Remove uses of ! to be compatible with rust <1.41 (in rust >=1.41 core::convert::Infallible = ! so with latest versions we will work just fine) 2019-12-26 21:50:39 +03:00
Waffle
7b3c51ff1b Rename the lib to "teloxide" 2019-12-07 22:30:15 +03:00
Waffle
fa220a6883 Add reference implementation of payloads 2019-11-05 19:32:22 +03:00
Waffle
ab9f2b99f1 Add newline at the end of the Cargo.toml 2019-11-02 17:16:54 +03:00
Waffle
5c73af4a6f Add Ignore and IgnoreSafe error policies. 2019-11-02 17:15:13 +03:00
Temirkhan Myrzamadi
8d4731d6d6 Rename the project to 'telebofr'
It means 'Telegram Bot For Rust'
2019-10-15 21:31:58 +06:00
Temirkhan Myrzamadi
4f17f23b69
Merge pull request #20 from WaffleLapkin/dispatcher
[WIP] Dispatcher impl
2019-10-15 05:38:26 +00:00
Waffle Lapkin
f8f133edea
Merge branch 'dev' into dispatcher 2019-10-15 00:24:22 +03:00
Waffle Lapkin
045dedf164
Merge branch 'dev' into remove_apply 2019-10-15 00:20:29 +03:00
Waffle
2b8ba6986c remove apply dep 2019-10-13 13:36:19 +03:00
Temirkhan Myrzamadi
9b0a059c8b Replace impl Error + derive Display with thiserror 2019-10-13 13:05:22 +06:00
Waffle
9dc9dffddb Add "unstable-stream" feature that unlocks public API that uses futures::stream::Stream 2019-10-11 15:01:58 +03:00
Temirkhan Myrzamadi
ca6b4a4628
Merge pull request #43 from async-telegram-bot/update_libs
Update libs
2019-10-10 17:31:32 +06:00
Waffle
3cf4dfeeb9 Update libs 2019-10-09 22:31:50 +03:00
Waffle
5e66c8fa22 Remove impl std::process::Termination for True 2019-10-09 21:25:54 +03:00
Waffle Lapkin
edeff3305a
Merge branch 'dev' into dispatcher 2019-10-06 11:23:52 +03:00
Waffle Lapkin
8b1a032b55
Merge branch 'dev' into unbox_send_future 2019-09-28 15:45:54 +03:00
Waffle
9ec1d10dd0 Rename Request::send -> Request::send_boxed and use async_trait instead of explicit pin-boxing 2019-09-28 14:39:04 +03:00
Waffle Lapkin
e05a008053
Merge branch 'dev' into dispatcher 2019-09-27 15:53:55 +03:00
Waffle
1ca7e7e226 Add Bot::get_updates method 2019-09-27 15:26:52 +03:00
Mr-Andersen
fc4dc06360 impl {Termination,Default,Hash,{Partial,}Ord} for True 2019-09-25 20:14:08 +03:00
Waffle Lapkin
78988205e9
Merge branch 'dev' into dispatcher 2019-09-21 01:17:25 +03:00
Waffle
f543cc371f Implement file downloading (and also add Bot::get_file) 2019-09-20 23:28:58 +03:00
Waffle
fdd79760e1 Dispatcher POC impl 2019-09-13 00:37:45 +03:00
Waffle
b0d88d69ea Move to reqwest from git (alpha.0) and tokio 0.2.0.alpha.4! 2019-09-08 01:44:55 +03:00
P0lunin
2cb6ba9e33 added .add_file() 2019-09-07 17:45:24 +03:00
Waffle
4d241131fc Make ResponseParameters more rust-friendly 2019-09-05 19:12:03 +03:00
Waffle
42c961b595 Implement request builders by hand instead of TypedBuilder 2019-09-04 11:00:15 +03:00
Waffle
57ee4e9223 requests 2019-09-02 10:39:29 +03:00
Temirkhan Myrzamadi
cd7982ec29 Create network/mod.rs 2019-09-02 12:29:04 +06:00
Temirkhan Myrzamadi
db7755d398 Implement /getMe (core/mod.rs) 2019-09-02 01:53:18 +06:00
Temirkhan Myrzamadi
5d91e28750
Temporary remove the 'authors' field (Cargo.toml) 2019-09-01 22:53:29 +06:00
Temirkhan Myrzamadi
122ed28f15 Initialise the project using Cargo 2019-09-01 22:51:07 +06:00