Commit graph

1955 commits

Author SHA1 Message Date
Temirkhan Myrzamadi
b11629a340
Merge pull request #266 from teloxide/dev_model
make 'dev' default branch in docs
2020-08-18 22:47:56 +06:00
Temirkhan Myrzamadi
060dd5f6b4
Add cognito_bot to README.md 2020-08-18 09:23:18 +06:00
Waffle
7cbbf43966 run CI for pull requests against dev 2020-08-17 18:30:19 +03:00
Waffle
7527179f3f add deprecation note to Bot constructors 2020-08-17 18:21:41 +03:00
Waffle
d88f92d26c make 'dev' default branch in docs 2020-08-17 18:10:03 +03:00
Temirkhan Myrzamadi
bf3c2c31d4
Merge pull request #264 from teloxide/docs
Numerous docs-related fixes
2020-08-13 21:34:49 +06:00
Waffle
94bc8504a5 oops, i've accidentally removed redis setup from ci 2020-08-13 00:07:16 +03:00
Waffle Lapkin
a368de15b1
Merge branch 'master' into docs 2020-08-12 23:59:26 +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
Dmytro Polunin
e542c05f31
Merge pull request #263 from teloxide/readme_local_links
Use local ./ paths instead of github links in README
2020-08-12 22:50:36 +03:00
Waffle
f765278c68 add docs|master badge and netlify config 2020-08-12 22:49:58 +03:00
Waffle
00e39e8d35 enable all features for docs.rs doc build 2020-08-12 22:48:36 +03:00
Waffle Lapkin
7a3ce7f05c
Remove confusing use of respond from README 2020-08-12 22:44:56 +03:00
Waffle Lapkin
f521f08470
Use local ./ paths instead of github links in README 2020-08-12 22:31:35 +03:00
Waffle Lapkin
52aba85ed3
Merge pull request #257 from teloxide/fix_inline_methods_by_split
Fix inline methods by split
2020-08-12 17:21:05 +03:00
Waffle
b81bfd3b2a fix fmt 2020-08-10 18:39:30 +03:00
Waffle
b06d3e7b7e add edit-methods and TargetMessage refactoring changes to CHANGELOG.md 2020-08-10 18:36:43 +03:00
Waffle
02400b18ab remove TargetMessage as ChatOrInlineMessage reexport as it couldn't be deprecated
Also rename `TargetMessage::{Chat => Common}` variant.
(anyway `ChatOrInlineMessage`/`TargetMessage` refactoring is not backward compatible)
2020-08-10 18:27:53 +03:00
Waffle
851e4c6bc6 refactor ChatOrInlineMessage
- Rename `ChatOrInlineMessage` => `TargetMessage`
- Change type of `TargetMessage::inline_message_id` `i32` => `String`
- Remove `#[non_exhaustive]` annotation as this enum is unlikely to be changed in future
- Implement `From<String>`
- Use `From<String>` impl in `get_game_high_scores` and `set_game_score` methods
- Leave a deprecated pub use as `ChatOrInlineMessage` for a bit of backward compat
2020-08-10 18:05:49 +03:00
Waffle
503f406edd Fix edit_* and stop_inline_message_live_location methods
Previously they have been broken because of the wrong type of
`ChatOrInlineMessage::Inline::inline_message_id` (`i32` instead
of `String`), and wrong return type in case of inline editing
messages (`Message` instead of `True`).

This commit splits the methods into inline and non-inline
versions, fixing the issue.
2020-08-10 18:05:18 +03:00
Dmytro Polunin
59b572e402
Merge pull request #258 from PatriotRossii/i255-unarc-bot-parsemode
Un Arc<_> Bot::parse_mode
2020-08-10 17:32:20 +03:00
Eoan Ermine
b1ac80e244 Fix code formatting, remove unused import 2020-08-07 12:02:30 +05:00
PatriotRossii
517afc0cfe
Remove unnecessary derefs 2020-08-07 06:08:22 +05:00
PatriotRossii
817f492223
Un Arc<_> Bot::parse_mode 2020-08-07 05:55:06 +05:00
Temirkhan Myrzamadi
d7ad1f26ed
Update CHANGELOG.md 2020-08-02 13:16:53 +06:00
Temirkhan Myrzamadi
05e32336fa Add requests::respond 2020-08-02 13:08:43 +06:00
Temirkhan Myrzamadi
3703f2dff6
Merge pull request #246 from DCjanus/master
remove unnecessary type bound
2020-08-02 11:13:14 +06:00
DCjanus
7b9f7e8690 fix example code 2020-08-02 12:11:09 +08:00
DCjanus
6f13d38812 remove unnecessary type bound 2020-08-02 02:43:30 +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
Kirill Mironov
245355ea3e set default error type 2020-08-01 11:58:24 +03:00
Kirill Mironov
ffb5f29362 Allow for custom error types in TransitionOut 2020-08-01 00:18:52 +03:00
S-Y-rat
8413b6b2b7 Implemented connection tests 2020-07-31 21:37:35 +03:00
Kirill Mironov
08d0d7f2f4 Unpair TransitionOut from concrete Error type resolves #242 2020-07-31 21:10:29 +03:00
Temirkhan Myrzamadi
0417f061fc Merge branch 'master' of https://github.com/teloxide/teloxide 2020-07-31 23:50:00 +06:00
Temirkhan Myrzamadi
f2618ad7ed Fix wrong documentation about TELOXIDE_PROXY 2020-07-31 23:49:43 +06:00
Temirkhan Myrzamadi
2f4006f5ea
Update the API coverage badge to 0.4.9 2020-07-31 23:18:13 +06:00
Temirkhan Myrzamadi
5985f62bfe
v0.3.0 README.md 2020-07-31 22:04:39 +06:00
Temirkhan Myrzamadi
b98932437b
v0.3.0 CHANGELOG.md 2020-07-31 21:56:27 +06:00
Temirkhan Myrzamadi
b68d03ae83
v0.3.0 Cargo.toml 2020-07-31 21:54:52 +06:00
Temirkhan Myrzamadi
a0064b7bef
Update README.md 2020-07-31 21:52:41 +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
6bb8482f3d Respect TELOXIDE_PROXY in Bot::from_env & BotBuilder 2020-07-31 21:34:48 +06:00
Temirkhan Myrzamadi
d4a14df5c8 Reduce duplication in bot/api.rs 2020-07-31 21:15:21 +06:00