Commit graph

875 commits

Author SHA1 Message Date
Maximilian Siling
a67d896d26 Don't reconnect to Redis every time 2020-04-19 19:24:24 +03:00
Maximilian Siling
798102a7d7 Add Redis storage & example bot using it 2020-04-19 18:31:23 +03:00
Maximilian Siling
f9b3a4836e Various style fixes
* Removed type bounds from struct declaration
* Simplified <S as Storage<D>>::Error to S::Error
* Simplified complex type to BoxFuture
2020-03-10 23:28:38 +03:00
Maximilian Siling
b97cc367fe fixup! Refactor Storage so operations can fail 2020-03-09 20:27:31 +03:00
Maximilian Siling
ecb09659b3 Refactor Storage so operations can fail 2020-03-09 20:19:27 +03:00
Temirkhan Myrzamadi
566137f001
Merge pull request #189 from teloxide/fix-todo-in-inline-keyboard-button
Add InlineKeyboardButtonKind::{LoginUrl, CallbackGame, Pay}
2020-03-09 16:15:48 +06:00
Temirkhan Myrzamadi
f1353b00ae Add InlineKeyboardButtonKind::{LoginUrl, CallbackGame, Pay} 2020-03-09 14:15:50 +06:00
Temirkhan Myrzamadi
fcf582eb83
Merge branch 'dev' into from-env-proxy 2020-03-09 13:19:16 +06:00
Mr-Andersen
2f4dfd8f0c Merge branch 'dev' of github.com:teloxide/teloxide into from-env-proxy
Потому что сразу надо было пр мерджить
2020-03-06 12:16:36 +03:00
Temirkhan Myrzamadi
234a0e4607 Remove the high-level overview from lib.rs 2020-03-06 15:05:44 +06:00
Ruben Smidt
f3d0570ef4 fix(markdown): add missing char to escape 2020-02-27 21:25:18 +01:00
Temirkhan Myrzamadi
1676434d1a Prepare to v0.2.0 2020-02-25 15:19:44 +06:00
Temirkhan Myrzamadi
c489e2b6da Fix Duration::from_secs(1) 2020-02-25 04:24:25 +06:00
Temirkhan Myrzamadi
4db46093cd Fix polling_default 2020-02-25 04:18:27 +06:00
Temirkhan Myrzamadi
468b4ec821 Improve the 'Getting started' section 2020-02-25 03:35:15 +06:00
Mr-Andersen
7aea85a187 created client_from_env() in utils 2020-02-24 20:49:41 +03:00
Mr-Andersen
a326860d4b var_os() -> var() (back) 2020-02-24 20:43:45 +03:00
Mr-Andersen
ddefd9e8a6 Cow::to_string() -> &*Cow 2020-02-24 20:36:12 +03:00
Mr-Andersen
bdbc226777 Added $TELOXIDE_PROXY to Bot::from_env 2020-02-24 20:20:15 +03:00
Temirkhan Myrzamadi
a801953516 Fix the tests 2020-02-24 21:29:09 +06:00
Temirkhan Myrzamadi
d165de64d7 Remove LanguageCode
Because the official Telegram documentation doesn't specify a concrete version of IETF language tag.
2020-02-24 21:21:53 +06:00
p0lunin
7ffb067434 prettified json 2020-02-24 17:02:28 +02:00
p0lunin
83332c7421 added serde rename and test 2020-02-24 16:48:56 +02:00
p0lunin
3557cf9a40 fmt 2020-02-24 16:39:57 +02:00
Temirkhan Myrzamadi
54cd855900
Fix grammatical mistakes in command.rs 2020-02-24 20:32:41 +06:00
p0lunin
8cbe9d8aff fixed parse_command: now call parse_command_with_prefix("/", ...) 2020-02-24 16:16:07 +02:00
Temirkhan Myrzamadi
28f4dd7c16 Add LanguageCode::Other 2020-02-23 20:42:10 +06:00
Temirkhan Myrzamadi
696efb1c5b Fix the docs of command.rs 2020-02-23 20:41:26 +06:00
Temirkhan Myrzamadi
ce169cffc6 Replace Into<String> with AsRef<str> 2020-02-23 20:29:02 +06:00
Temirkhan Myrzamadi
fb6e295447 Fix the examples 2020-02-23 19:36:31 +06:00
p0lunin
1f1234c9bf fixed examples 2020-02-23 14:18:21 +02:00
p0lunin
b5221d68a7 Merge branch 'dev' of https://github.com/teloxide/teloxide into fix_parse_command 2020-02-23 14:13:28 +02:00
Temirkhan Myrzamadi
9e8f79a0b5 Trying to make bot_name: N, where N: Into<String> 2020-02-23 17:15:19 +06:00
p0lunin
c02af81dd1 attempt to remove 'static lifetime in DispatcherHandlerRxExt::commands 2020-02-23 11:22:14 +02:00
p0lunin
32c2c041c9 fixed parse_command() and parse_command_with_prefix() in utils 2020-02-23 11:13:14 +02:00
p0lunin
673269602d fmt 2020-02-22 23:02:31 +02:00
p0lunin
61f06a5e7a fixed documentation 2020-02-22 22:53:11 +02:00
Temirkhan Myrzamadi
43a8c21b68 Fix some compilation errors 2020-02-23 02:08:45 +06:00
p0lunin
a3e5331312 changed signature to Command::parse(text, bot_name) but it failed 2020-02-22 18:58:29 +02:00
Temirkhan Myrzamadi
1bb5c0ef0e Remove russian text from telegram_response.rs 2020-02-21 23:55:04 +06:00
Temirkhan Myrzamadi
29ed9a1ffe Fix parsing pinned_message
Related to https://github.com/teloxide/teloxide/issues/167.
2020-02-20 21:22:46 +06:00
p0lunin
15d5a02154 added split by '@' 2020-02-20 00:10:00 +02:00
Temirkhan Myrzamadi
93afb0b611 Fix a typo (TELOXITE_TOKEN -> TELOXIDE_TOKEN) 2020-02-20 03:22:32 +06:00
Temirkhan Myrzamadi
b68db75619 Remove the unnecessary Mutex from Dispatcher 2020-02-20 02:09:18 +06:00
Temirkhan Myrzamadi
3308014694 Quick fixes 2020-02-19 21:32:42 +06:00
Temirkhan Myrzamadi
e0d0e22ea6 Fix a typo 2020-02-19 21:19:22 +06:00
Temirkhan Myrzamadi
332da2c3dd Simplify .commands() 2020-02-19 16:05:01 +06:00
Temirkhan Myrzamadi
46b20f676e Add DispatcherHandlerRxExt 2020-02-19 15:53:54 +06:00
Temirkhan Myrzamadi
9d78b7e0a6 Fix Clippy 2020-02-19 08:27:47 +06:00
Temirkhan Myrzamadi
143294fa5b Fix src/dispatching/mod.rs 2020-02-19 08:16:23 +06:00