Commit graph

2863 commits

Author SHA1 Message Date
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
Hirrolot
236592b1b6 Merge pull request #661 from teloxide/fix-gifs-width
Fix GIFs resizing in `README.md`

Former-commit-id: f81209397a
2022-06-27 02:07:39 +06:00
Maybe Waffle
d5e8b67332 Update changelog
Former-commit-id: b45472973c
2022-06-27 00:02:27 +04:00
Maybe Waffle
98a892e6bd Apply suggestions from the review
Former-commit-id: 8489464bd3
2022-06-27 00:01:31 +04:00
Hirrolot
3dfd861299 Fix GIFs resizing in README.md
Former-commit-id: d232319dfa
2022-06-27 01:57:27 +06:00
Maybe Waffle
0b307aa177 Auto-magically detect how much workers need to be kept alive
Former-commit-id: a820dedd50
2022-06-26 22:53:41 +04:00
Waffle Maybe
09745146bb Merge pull request #656 from 0xNima/dev
update community bots

Former-commit-id: 38cf5997e1
2022-06-22 13:36:58 +04:00
Hirrolot
f33499da32 Update README.md
Former-commit-id: ef0b2f2795
2022-06-22 15:26:23 +06:00
Maybe Waffle
c18a9fe644 Add "GC" for dispatcher workers
Former-commit-id: 9cb7ca9bd3
2022-06-17 23:01:26 +04:00
0xNima
2f880395b9 update community bots
Former-commit-id: 174b64e6f4
2022-06-17 18:21:04 +04:30
Waffle Maybe
7eecd795ce Merge pull request #654 from modos189/dev-mybot
Add modos189/tg_blackbox_bot

Former-commit-id: 074fd4e343
2022-06-16 23:17:16 +04:00
Alexander Danilov
5a103ed354 Add modos189/tg_blackbox_bot
Former-commit-id: ecef7ec8cc
2022-06-16 21:19:03 +03:00
Waffle Maybe
48dbcba155 Merge pull request #647 from teloxide/use_built_in_webhooks_in_heroku_example
use built-in webhook support in heroku example

Former-commit-id: d2bf4a47ab
2022-06-12 15:25:01 +04:00
Maybe Waffle
b8004a803a use built-in webhook support in heroku example
Former-commit-id: 0b582882eb
2022-06-09 18:00:15 +04:00
Waffle Maybe
e1aa4a0615 Merge pull request #643 from teloxide/v0.9.2
Release v0.9.2

Former-commit-id: c4d456a432
2022-06-07 10:35:58 +04:00
Hirrolot
d0c89036ff Release v0.9.2
Former-commit-id: 3757d837a0
2022-06-07 10:06:37 +06:00