Commit graph

4032 commits

Author SHA1 Message Date
Hirrolot
1bf1410337 Merge pull request #675 from raine/dev
Add tgreddit to Community Bots

Former-commit-id: aa43175c46
2022-07-08 02:16:21 +06:00
Raine Virta
651526f2c0 Add tgreddit to Community Bots
Former-commit-id: 9fc68dc73f
2022-07-07 22:05:31 +02:00
Waffle Maybe
e590736585 Merge pull request #662 from teloxide/polling_builder
Add `PollingBuilder` & friends

Former-commit-id: 3d4d506203
2022-07-05 00:20:54 +04:00
Maybe Waffle
8cecf248b2 Make fields of PollingBuilder public
Former-commit-id: cd63dbf1e7
2022-07-05 00:07:15 +04:00
Maybe Waffle
1ff0440762 Mark Polling and PollingBuilder as must_use
Former-commit-id: 430df0cefb
2022-07-05 00:05:29 +04:00
Maybe Waffle
f0608da9c3 When creating Polling assert that it's an UpdateListener
Former-commit-id: 08da55f54f
2022-07-05 00:05:29 +04:00
Maybe Waffle
4e5e7a145d Fix docs
Former-commit-id: ee52bb28b4
2022-07-05 00:05:29 +04:00
Maybe Waffle
cce0710c8c Move polling_builder => Polling::builder
Former-commit-id: 79f6cf4ee9
2022-07-05 00:05:27 +04:00
Maybe Waffle
79e393c445 Correct deprecated since version
Former-commit-id: 195d34ba0c
2022-07-05 00:04:47 +04:00
Maybe Waffle
a07af45ec7 Update changelog
Former-commit-id: 4f2e723d56
2022-07-05 00:04:43 +04:00
Maybe Waffle
09d189f689 Panic for limit=0
Former-commit-id: b29d60657f
2022-07-05 00:04:26 +04:00
Maybe Waffle
f9da86f881 Add option to drop pending updates w/ polling
Former-commit-id: 612f47d242
2022-07-05 00:04:26 +04:00
Maybe Waffle
60fc833108 Remove useless use
Former-commit-id: 58bbf8e737
2022-07-05 00:04:26 +04:00
Maybe Waffle
060886737f Deprecate polling(), expose Polling{,Builder} and fix docs
Former-commit-id: e0e5da30ba
2022-07-05 00:04:26 +04:00
Maybe Waffle
e51c4c774c Return named Polling<_> type from polling* functions
This replaces the `impl UpdateListener<R::Err>` and makes using polling
nicer.


Former-commit-id: db417caa52
2022-07-05 00:04:26 +04:00
Maybe Waffle
2ceccdf442 Implement polling stream by hand
IMO it's actually clearer & nicer than the old impl. +The types are now
nameable.


Former-commit-id: 82fc756aab
2022-07-05 00:04:26 +04:00
Maybe Waffle
a839b47106 Add polling builder
Former-commit-id: 6729c965fa
2022-07-05 00:04:26 +04:00
Waffle Maybe
7046b0d8fb Merge pull request #671 from teloxide/webhooks_secret_token
Add support for `secret_token` for built-in webhooks

Former-commit-id: c4c3acf742
2022-07-05 00:03:13 +04:00
Maybe Waffle
9061d8e347 Remove useless comments
Former-commit-id: b849067378
2022-07-04 23:58:46 +04:00
Maybe Waffle
c87b6d4f41 Mark webhooks::Options as #[must_use]
Former-commit-id: db59b47674
2022-07-04 23:52:59 +04:00
Hirrolot
6fcec547f1 Merge pull request #669 from teloxide/use-default-enum-variant
Use `#[default]` for `State::Start` in dialogues

Former-commit-id: 9290665d04
2022-07-04 21:59:34 +06:00
Hirrolot
6331fe50cb Use #[default] for State::Start in dialogues
Former-commit-id: 14e9fd2197
2022-07-04 21:47:57 +06:00
Waffle Maybe
cb873cbc3e Merge pull request #673 from teloxide/actually-dont-build-examples-with-msrv-on-ci
**Actually** don't build examples with MSRV on CI

Former-commit-id: 68f9ccfcb1
2022-07-04 19:42:49 +04:00
Waffle Maybe
088d5f9912 **Actually** don't build examples with MSRV on CI
:|

Former-commit-id: 7a8e1e0e3d
2022-07-04 19:34:11 +04:00
Maybe Waffle
f46358878b Clippy :|
Former-commit-id: e8ce86df8b
2022-07-03 22:49:15 +04:00
Maybe Waffle
4be7e5a812 Update changelog
Former-commit-id: 88ddf7f7a2
2022-07-03 22:49:15 +04:00
Maybe Waffle
35b800073b Document webhook* features
Former-commit-id: 1458e40b45
2022-07-03 22:49:15 +04:00
Maybe Waffle
aa31cd4caf Reorder features in features.md
Former-commit-id: dc9dc8cd13
2022-07-03 22:49:15 +04:00
Maybe Waffle
653b2119aa Reformat features file
Former-commit-id: 4edd41fd58
2022-07-03 22:49:15 +04:00
Maybe Waffle
1360aa96c3 Add support for secret_token in built-in webhooks
Former-commit-id: 8806cb9d78
2022-07-03 22:49:15 +04:00
Maybe Waffle
7f6d2c2801 Update teloxide-core to master
Former-commit-id: c129b6a53d
2022-07-03 22:49:15 +04:00
Waffle Maybe
3615004729 Merge pull request #672 from teloxide/improve-ci
improve ci

Former-commit-id: 2a58244ee5
2022-07-03 21:52:44 +04:00
Maybe Waffle
074b991189 fix doctest
Former-commit-id: cabc045c06
2022-07-03 15:21:17 +04:00
Maybe Waffle
82ff78b5f6 Don't build examples when testing on CI
Former-commit-id: 77d1c4524d
2022-07-03 15:12:18 +04:00
Maybe Waffle
21cd47dcfd Improve CI
Former-commit-id: a9886d8419
2022-07-03 15:12:18 +04:00
Maybe Waffle
41197bf515 Change recommended way to build docs
Former-commit-id: a4ad44fae9
2022-07-03 15:12:18 +04:00
Maybe Waffle
6bfa21a02e Update pinned nightly version
Former-commit-id: 0048370169
2022-07-03 15:12:18 +04:00
Waffle Maybe
b13393dac4
Merge pull request #235 from teloxide/fixdocs
Fix docs
2022-06-30 12:32:35 +04: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
Maybe Waffle
5ac8dff53a ugh 2022-06-29 19:49:16 +04:00
Hirrolot
d813555459 Make a TODO in place of the dispatching doc example
Former-commit-id: 69b5d8b3d5
2022-06-29 21:36:36 +06:00
Waffle Maybe
f03f34ce3e
Merge pull request #234 from teloxide/ci-experiments
[experiment] refactor ci
2022-06-29 19:14:36 +04:00
Waffle Maybe
149524e8ef
Merge pull request #233 from teloxide/tba61
Add support for Telegram Bot API version 6.1
2022-06-29 19:03:14 +04:00
Maybe Waffle
6945ff1133 fix tests 2022-06-29 18:06:19 +04:00
Maybe Waffle
16cbc07c9c Update changelog & supported API version 2022-06-29 18:06:16 +04:00
Maybe Waffle
6630fe0b69 [TBA-6.1] Method changes 2022-06-29 18:05:25 +04:00
Maybe Waffle
1a81ba5fef [TBA-6.1] Clarify in docs that login url must be https 2022-06-29 18:05:25 +04:00
Maybe Waffle
b1aab1a6e1 [TBA-6.1] Add weird user field
(seriously, does anyone know what is this about?)
2022-06-29 18:05:25 +04:00
Maybe Waffle
f14bc79dda Fix File fields optionability 2022-06-29 18:05:22 +04:00
Maybe Waffle
46ffd51ec9 [TBA-6.1] Support premium stuff 2022-06-29 18:04:28 +04:00