Commit graph

4832 commits

Author SHA1 Message Date
Сырцев Вадим Игоревич
b625e813cc
Fix issue #945 (PR 946 originally) 2024-08-15 17:06:00 +04:00
Andrey Brusnik
664717e07d
Use ChatFullInfo::default() in gieaway, message_reaction and chat_boost tests 2024-08-15 17:06:00 +04:00
Andrey Brusnik
b78dac4ee5
Update CHANGELOG.md and README.md 2024-08-15 17:06:00 +04:00
Andrey Brusnik
467468c546
Add getUserChatBoosts TBA method 2024-08-15 17:06:00 +04:00
Andrey Brusnik
48b7c7b24b
Add UserChatBoosts struct 2024-08-15 17:06:00 +04:00
Andrey Brusnik
dbf138a5b3
Add ChatBoostUpdated and ChatBoostRemoved updates 2024-08-15 17:06:00 +04:00
Andrey Brusnik
65b46972f9
Add ChatBoost and ChatBoostSource structs 2024-08-15 17:06:00 +04:00
Andrey Brusnik
e5edaceb22
Move deserialization prefix for giveaway_message_id field to types module
because it will be used in `ChatBoostSourceGiveaway` later
2024-08-15 17:06:00 +04:00
Andrey Brusnik
1abf1fa519
Add link_preview_options getter to Message 2024-08-15 17:06:00 +04:00
Andrey Brusnik
3d74587c93
Add LinkPreviewOptions struct
and `link_preview_options` field to `InputMessageContentText`, `Message`,  `sendMessage` and `editMessageText`
2024-08-15 17:06:00 +04:00
Andrey Brusnik
599d8fac8a
Remove disable_web_page_preview field from everywhere 2024-08-15 17:06:00 +04:00
Andrey Brusnik
1e25bf1c96
Add available_reactions field to Chat 2024-08-15 17:06:00 +04:00
Andrey Brusnik
409c3d5403
Add setMessageReaction TBA method 2024-08-15 17:06:00 +04:00
Andrey Brusnik
50768a1af0
Add MessageReactionUpdated and MessageReactionCountUpdated structs 2024-08-15 17:06:00 +04:00
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