Commit graph

4768 commits

Author SHA1 Message Date
Andrey Brusnik
77882d97f7
Add ReactionType struct 2024-08-15 17:05:59 +04:00
Andrey Brusnik
cfa67610f6
Add filter_giveaway, filter_giveaway_completed, filter_giveaway_created and filter_giveaway_winners
to MessageFilterExt
2024-08-15 17:05:59 +04:00
Andrey Brusnik
dc3660b308
Add giveaway* tests 2024-08-15 17:05:59 +04:00
Andrey Brusnik
fda1890425
Add giveaway* getters to Message 2024-08-15 17:05:59 +04:00
Andrey Brusnik
d9587ea562
Add GiveawayCompleted struct 2024-08-15 17:05:59 +04:00
Andrey Brusnik
9d803693fb
Add GiveawayWinners struct 2024-08-15 17:05:59 +04:00
Andrey Brusnik
fa1b793c7f
Add GiveawayCreated struct 2024-08-15 17:05:59 +04:00
Andrey Brusnik
62da0027e3
Add Giveaway struct 2024-08-15 17:05:59 +04:00
Сырцев Вадим Игоревич
c0f97fae0e
Fix docs for KeyboardButtonRequestUsers 2024-08-15 17:05:59 +04:00
Сырцев Вадим Игоревич
298df305f0
Add the quote field of typeTextQuote to the Message struct 2024-08-15 17:05:59 +04:00
Сырцев Вадим Игоревич
7680d7e978
Add the ReplyParameters struct 2024-08-15 17:05:59 +04:00
Сырцев Вадим Игоревич
8f9b6d13ca
Fix #1058 2024-08-15 17:05:59 +04:00
Сырцев Вадим Игоревич
c8f7bd745c
Add MaybeInaccessibleMessage to the Message and CallbackQuery 2024-08-15 17:05:59 +04:00
Сырцев Вадим Игоревич
6c967231ef
Add MessageOrigin field to MessageCommon 2024-08-15 17:05:59 +04:00
Сырцев Вадим Игоревич
83d9e6c6b7
Add new fields of TBA7.0 to the ChatFullInfo 2024-08-15 17:05:59 +04:00
Сырцев Вадим Игоревич
7dc7047ea1
Add request for multiple users 2024-08-15 17:05:58 +04:00
Сырцев Вадим Игоревич
fcf3a14510
Add blockqoute message entity 2024-08-15 17:05:58 +04:00
Сырцев Вадим Игоревич
13dd93cc63
Add multiple message actions methods of TBA 7.0 2024-08-15 17:05:58 +04:00
Waffle Maybe
e96a6a5ec2
Merge pull request #1130 from teloxide/time-to-move-on
I'm stepping down as a maintainer
2024-08-14 20:09:14 +00:00
Waffle Maybe
5298241248
remove myself from feature_request.md assignees 2024-08-14 17:42:44 +02:00
Waffle Maybe
e55eeace63
remove myself from parse-error.md assignees 2024-08-14 17:42:11 +02:00
Waffle Maybe
c908f57b82
Remove myself from review rotation 2024-08-14 17:40:01 +02:00
Waffle Maybe
d6abcfae4a
Merge pull request #1128 from teloxide/dependabot/cargo/lock-03fb6a30f5
Bump the lock group with 12 updates
2024-08-12 16:02:30 +00:00
dependabot[bot]
34b5f01877
Bump the lock group with 12 updates
Bumps the lock group with 12 updates:

| Package | From | To |
| --- | --- | --- |
| [serde_json](https://github.com/serde-rs/json) | `1.0.122` | `1.0.124` |
| [serde](https://github.com/serde-rs/serde) | `1.0.204` | `1.0.206` |
| [pretty_env_logger](https://github.com/seanmonstar/pretty-env-logger) | `0.4.0` | `0.5.0` |
| [bitflags](https://github.com/bitflags/bitflags) | `1.3.2` | `2.4.2` |
| [aho-corasick](https://github.com/BurntSushi/aho-corasick) | `0.7.20` | `1.1.2` |
| [syn](https://github.com/dtolnay/syn) | `1.0.109` | `2.0.52` |
| [cc](https://github.com/rust-lang/cc-rs) | `1.1.7` | `1.1.10` |
| [core-foundation-sys](https://github.com/servo/core-foundation-rs) | `0.8.6` | `0.8.7` |
| [hyper-util](https://github.com/hyperium/hyper-util) | `0.1.6` | `0.1.7` |
| [mio](https://github.com/tokio-rs/mio) | `1.0.1` | `1.0.2` |
| [object](https://github.com/gimli-rs/object) | `0.36.2` | `0.36.3` |
| [serde_derive](https://github.com/serde-rs/serde) | `1.0.204` | `1.0.206` |


Updates `serde_json` from 1.0.122 to 1.0.124
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.122...v1.0.124)

Updates `serde` from 1.0.204 to 1.0.206
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.204...v1.0.206)

Updates `pretty_env_logger` from 0.4.0 to 0.5.0
- [Commits](https://github.com/seanmonstar/pretty-env-logger/compare/v0.4.0...v0.5.0)

Updates `bitflags` from 1.3.2 to 2.4.2
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitflags/bitflags/compare/1.3.2...2.4.2)

Updates `aho-corasick` from 0.7.20 to 1.1.2
- [Commits](https://github.com/BurntSushi/aho-corasick/compare/0.7.20...1.1.2)

Updates `syn` from 1.0.109 to 2.0.52
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.109...2.0.52)

Updates `cc` from 1.1.7 to 1.1.10
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.7...cc-v1.1.10)

Updates `core-foundation-sys` from 0.8.6 to 0.8.7
- [Commits](https://github.com/servo/core-foundation-rs/compare/core-foundation-sys-v0.8.6...core-foundation-sys-v0.8.7)

Updates `hyper-util` from 0.1.6 to 0.1.7
- [Release notes](https://github.com/hyperium/hyper-util/releases)
- [Changelog](https://github.com/hyperium/hyper-util/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper-util/compare/v0.1.6...v0.1.7)

Updates `mio` from 1.0.1 to 1.0.2
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v1.0.1...v1.0.2)

Updates `object` from 0.36.2 to 0.36.3
- [Changelog](https://github.com/gimli-rs/object/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gimli-rs/object/compare/0.36.2...0.36.3)

Updates `serde_derive` from 1.0.204 to 1.0.206
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.204...v1.0.206)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: pretty_env_logger
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: lock
- dependency-name: bitflags
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: lock
- dependency-name: aho-corasick
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: lock
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: lock
- dependency-name: cc
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: core-foundation-sys
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: hyper-util
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: mio
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: object
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: serde_derive
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 09:05:46 +00:00
Waffle Maybe
37123f74ef
Merge pull request #1125 from teloxide/dependabot/cargo/lock-1ff5577b9b
Bump the lock group across 1 directory with 20 updates
2024-08-06 11:27:24 +00:00
Waffle Maybe
ce3e5c02cc
Downgrade deadpool-runtime for MSRV CI 2024-08-06 15:10:07 +04:00
Waffle Maybe
f081e04ee9
Merge pull request #1105 from pfa230/throttle_clone
Fix issue with Throttle and Trace adaptors losing Requester trait bounds
2024-08-06 06:50:15 +00:00
Fedir Panasenko
75f24fcd98
Remove adaptors test
As per discussion, the usefulness of the test is dubious.
2024-08-05 23:08:33 -04:00
dependabot[bot]
5f6ba1819e
Bump the lock group across 1 directory with 20 updates
Bumps the lock group with 17 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [serde_json](https://github.com/serde-rs/json) | `1.0.120` | `1.0.122` |
| [tokio](https://github.com/tokio-rs/tokio) | `1.38.0` | `1.39.2` |
| [bytes](https://github.com/tokio-rs/bytes) | `1.6.1` | `1.7.1` |
| [thiserror](https://github.com/dtolnay/thiserror) | `1.0.62` | `1.0.63` |
| [pretty_env_logger](https://github.com/seanmonstar/pretty-env-logger) | `0.4.0` | `0.5.0` |
| [bitflags](https://github.com/bitflags/bitflags) | `1.3.2` | `2.4.2` |
| [aho-corasick](https://github.com/BurntSushi/aho-corasick) | `0.7.20` | `1.1.2` |
| [syn](https://github.com/dtolnay/syn) | `1.0.109` | `2.0.52` |
| [cc](https://github.com/rust-lang/cc-rs) | `1.1.5` | `1.1.7` |
| [deadpool-runtime](https://github.com/bikeshedder/deadpool) | `0.1.3` | `0.1.4` |
| [object](https://github.com/gimli-rs/object) | `0.36.1` | `0.36.2` |
| [ppv-lite86](https://github.com/cryptocorrosion/cryptocorrosion) | `0.2.17` | `0.2.20` |
| [regex](https://github.com/rust-lang/regex) | `1.10.5` | `1.10.6` |
| [socket2](https://github.com/rust-lang/socket2) | `0.5.6` | `0.5.7` |
| [tempfile](https://github.com/Stebalien/tempfile) | `3.10.1` | `3.11.0` |
| [version_check](https://github.com/SergioBenitez/version_check) | `0.9.4` | `0.9.5` |
| [winapi-util](https://github.com/BurntSushi/winapi-util) | `0.1.8` | `0.1.9` |



Updates `serde_json` from 1.0.120 to 1.0.122
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.120...v1.0.122)

Updates `tokio` from 1.38.0 to 1.39.2
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.38.0...tokio-1.39.2)

Updates `bytes` from 1.6.1 to 1.7.1
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.6.1...v1.7.1)

Updates `thiserror` from 1.0.62 to 1.0.63
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.62...1.0.63)

Updates `pretty_env_logger` from 0.4.0 to 0.5.0
- [Commits](https://github.com/seanmonstar/pretty-env-logger/compare/v0.4.0...v0.5.0)

Updates `bitflags` from 1.3.2 to 2.4.2
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitflags/bitflags/compare/1.3.2...2.4.2)

Updates `aho-corasick` from 0.7.20 to 1.1.2
- [Commits](https://github.com/BurntSushi/aho-corasick/compare/0.7.20...1.1.2)

Updates `syn` from 1.0.109 to 2.0.52
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.109...2.0.52)

Updates `cc` from 1.1.5 to 1.1.7
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.5...cc-v1.1.7)

Updates `deadpool-runtime` from 0.1.3 to 0.1.4
- [Changelog](https://github.com/bikeshedder/deadpool/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bikeshedder/deadpool/compare/deadpool-runtime-v0.1.3...deadpool-runtime-v0.1.4)

Updates `mio` from 0.8.11 to 1.0.1
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/commits)

Updates `object` from 0.36.1 to 0.36.2
- [Changelog](https://github.com/gimli-rs/object/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gimli-rs/object/compare/0.36.1...0.36.2)

Updates `ppv-lite86` from 0.2.17 to 0.2.20
- [Commits](https://github.com/cryptocorrosion/cryptocorrosion/commits)

Updates `regex` from 1.10.5 to 1.10.6
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.10.5...1.10.6)

Updates `socket2` from 0.5.6 to 0.5.7
- [Release notes](https://github.com/rust-lang/socket2/releases)
- [Changelog](https://github.com/rust-lang/socket2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/socket2/compare/v0.5.6...v0.5.7)

Updates `tempfile` from 3.10.1 to 3.11.0
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.10.1...v3.11.0)

Updates `thiserror-impl` from 1.0.62 to 1.0.63
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.62...1.0.63)

Updates `tokio-macros` from 2.3.0 to 2.4.0
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-macros-2.3.0...tokio-macros-2.4.0)

Updates `version_check` from 0.9.4 to 0.9.5
- [Commits](https://github.com/SergioBenitez/version_check/compare/v0.9.4...v0.9.5)

Updates `winapi-util` from 0.1.8 to 0.1.9
- [Commits](https://github.com/BurntSushi/winapi-util/compare/0.1.8...0.1.9)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: lock
- dependency-name: bytes
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: lock
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: pretty_env_logger
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: lock
- dependency-name: bitflags
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: lock
- dependency-name: aho-corasick
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: lock
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: lock
- dependency-name: cc
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: deadpool-runtime
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: mio
  dependency-type: indirect
  update-type: version-update:semver-major
  dependency-group: lock
- dependency-name: object
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: ppv-lite86
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: regex
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: socket2
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: tempfile
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: lock
- dependency-name: thiserror-impl
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: tokio-macros
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: lock
- dependency-name: version_check
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: winapi-util
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 08:32:10 +00:00
Waffle Maybe
151ae673b6
Merge pull request #1119 from IlyaBizyaev/feat/webhook-path
Allow serving path configuration for the webhook
2024-08-01 04:47:24 +00:00
Ilya Bizyaev
7880e473a1
Allow serving path configuration for the webhook
When running behind e.g. NGINX, Axum might receive requests on a path
that is different from the one in the public webhook URL, such as "/"
instead of "/bot". This commit adds a new optional field to Options to
make such a setup possible.
2024-07-31 21:17:59 +02:00
Сырцев Вадим Игоревич
1b58ef26e8
Merge pull request #1113 from syrtcevvi/fix/tweak-backoff
Improve backoff and behaviour in case of RetryAfter errors
2024-07-31 14:13:26 +00:00
Сырцев Вадим Игоревич
dc125e3b65
Put incrementing error count to the Err branch of PollingStream::poll_next 2024-07-31 17:07:45 +03:00
Сырцев Вадим Игоревич
4f1a458fb7
Refactor backoff-related code 2024-07-31 17:07:44 +03:00
Сырцев Вадим Игоревич
87188d5dea
Update CHANGELOG.md 2024-07-31 17:07:44 +03:00
Сырцев Вадим Игоревич
3da5a1a4c5
Improve backoff and behaviour in case of RetryAfter errors 2024-07-31 17:07:44 +03:00
Сырцев Вадим Игоревич
ccfc6165e6
Merge pull request #1115 from LasterAlex/add-tests-to-readme
Added testing field to README
2024-07-30 11:06:32 +00:00
LasterAlex
a916670c6f README update according to WaffleLapkin's comment 2024-07-30 13:52:21 +03:00
LasterAlex
a8b01642c6 Added testing field to README 2024-07-30 13:52:21 +03:00
Сырцев Вадим Игоревич
530b0bbf40
Merge pull request #1116 from teloxide/reanimate-code
Allow `dead_code` in a test
2024-07-30 08:12:02 +00:00
Waffle Maybe
6a299f6012
Allow dead_code in a test
rustc seems to have some changes with the `dead_code` lints which affect this.
2024-07-30 09:18:19 +02:00
Waffle Maybe
6f1b48ca92
Merge pull request #1110 from teloxide/dependabot/cargo/openssl-0.10.66
Bump openssl from 0.10.64 to 0.10.66
2024-07-22 18:44:28 +00:00
dependabot[bot]
87d365773c
Bump openssl from 0.10.64 to 0.10.66
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.64 to 0.10.66.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.64...openssl-v0.10.66)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-22 18:13:27 +00:00
Waffle Maybe
7df5610620
Merge pull request #1108 from syrtcevvi/master
Add tests to issue #1107
2024-07-22 08:42:03 +00:00
Сырцев Вадим Игоревич
d2fd9fb93a Add tests to issue #1107 2024-07-22 08:50:52 +03:00
Waffle Maybe
89ad80dcca
Merge pull request #1066 from strongtu/master
send_game needs chat_id by ChatId not u32
2024-07-21 14:36:30 +00:00
Waffle Maybe
810b5ffc5b
Merge pull request #1106 from teloxide/remove-ahash
Remove the `ahash` dependency
2024-07-21 14:36:15 +00:00
Tima Kinsart
f4c1d9ee5c
Update CHANGELOG.md 2024-07-21 19:11:41 +05:00
Hirrolot
2126ee8b2f
Remove the ahash dependency 2024-07-21 19:05:44 +05:00
Tima Kinsart
2c894b05e4
Merge pull request #1081 from arrtchiu/deadpool-redis
Use deadpool-redis for pooling (fixes #707)
2024-07-21 04:44:26 +00:00