Commit graph

2933 commits

Author SHA1 Message Date
Maybe Waffle
a7eff7192b bump version
Former-commit-id: 6996c7ff87
2022-07-19 14:53:42 +04:00
Maybe Waffle
cc74e7517d Update deps
Former-commit-id: ed88e43afa
2022-07-19 14:30:18 +04:00
Maybe Waffle
f6e7c01a45 Update dptree
Former-commit-id: eb8b384f46
2022-07-18 15:56:45 +04:00
Maybe Waffle
123c550c6c Add a test for discussion_648
Former-commit-id: 56f8ef90ec
2022-07-18 15:56:25 +04:00
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
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
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
0b78b2d315 Merge pull request #667 from AlecsFerra/patch-1
Update the heroku example to use 0.0.0.0 as ip

Former-commit-id: 8c2355a433
2022-06-29 17:24:15 +04:00
Alessio
5e8682da8c Update the heroku example to use 0.0.0.0 as ip
On heroku we canno't bind on 127.0.0.1

Former-commit-id: c95203759a
2022-06-29 15:10:45 +02:00
Hirrolot
d3f1e4058c Use Arc<AtomicU64> in examples/shared_state.rs
Former-commit-id: a48f6c8a44
2022-06-29 01:49:49 +06:00
Hirrolot
b2653d0769 Merge pull request #664 from hugocornago/dev
fix typo

Former-commit-id: 1c6b35a443
2022-06-27 14:40:02 +06:00
Hugo Cornago
6fa2818bcd fix typo
Former-commit-id: 22b554650e
2022-06-27 10:31:09 +02:00
Waffle Maybe
9cd16a94aa Merge pull request #657 from teloxide/gc_for_workers
Add "GC" for dispatcher workers

Former-commit-id: 19eca5d061
2022-06-27 02:41:58 +04:00
Hirrolot
407efd17ee Update CHANGELOG.md
Former-commit-id: 3e35d40e84
2022-06-27 02:30:39 +06:00