Commit graph

4821 commits

Author SHA1 Message Date
Andrey Brusnik
dcb350413a
Move most of the fields and methods from Chat to ChatFullInfo struct
And remove some degraded (because of this change) functionality
2024-08-29 22:10:55 +04:00
Andrey Brusnik
ad6d5704eb
Document that .MP3 and .M4A files can be used as voice messages 2024-08-29 22:10:54 +04:00
Andrey Brusnik
09d7b06079
Add ChatBackground variant to MessageKind enum
and add `filter_chat_background_set` to `MessageFilterExt` trait
2024-08-29 22:10:54 +04:00
Andrey Brusnik
63e0448b28
Add BackgroundType enum 2024-08-29 22:10:54 +04:00
Andrey Brusnik
31561bc211
Add BackgroundFill enum 2024-08-29 22:10:54 +04:00
Andrey Brusnik
a833bd89ad
Change options param type in method sendPoll to InputPollOption 2024-08-29 22:10:54 +04:00
Andrey Brusnik
477fd49faa
Add InputPollOption struct 2024-08-29 22:10:54 +04:00
Andrey Brusnik
f6c54d3363
Add question_parse_mode and question_entities params
to `sendPoll` method
2024-08-29 22:10:54 +04:00
Andrey Brusnik
daee7e99c1
Add text_entities filed to PollOption struct 2024-08-29 22:10:54 +04:00
Andrey Brusnik
5156210bfd
Add question_entities field to Poll struct 2024-08-29 22:10:54 +04:00
Andrey Brusnik
f2e96d808c
Add live_period param to editMessageLiveLocation method 2024-08-29 22:10:54 +04:00
Andrey Brusnik
d388aa08e8
Create LivePeriod enum and use it in live_period fields
TBA 7.3 introduced `0x7FFFFFFF` 'indefinite' live period
2024-08-29 22:10:54 +04:00
Andrey Brusnik
d1108459b1
Add via_join_request field to ChatMemberUpdated struct 2024-08-29 22:10:54 +04:00
Tima Kinsart
cf2b01d877
Merge pull request #1157 from jdertmann/add-api-error-variant
Add BotKickedFromChannel variant to ApiError
2024-08-29 01:56:24 +00:00
Tima Kinsart
55141db2ac
Link PR #1157 in the changelog 2024-08-28 21:52:19 -04:00
Johannes Dertmann
3977b79b90 Add BotKickedFromChannel variant to ApiError 2024-08-29 00:24:22 +02:00
Сырцев Вадим Игоревич
a9c5d7a77a
Merge pull request #1151 from shdwchn10/feature/rgb
Add dedicated `Rgb` struct to replace `[u8; 3]`
2024-08-28 17:33:24 +00:00
Andrey Brusnik
181b30304f
Add dedicated Rgb struct to replace [u8; 3] 2024-08-28 21:27:51 +04:00
Tima Kinsart
7b2de9ad39
Merge pull request #1148 from teloxide/dependabot/cargo/lock-493300ad64
Bump the lock group with 11 updates
2024-08-26 12:16:42 +00:00
dependabot[bot]
66ea5e323b
Bump the lock group with 11 updates
Bumps the lock group with 11 updates:

| Package | From | To |
| --- | --- | --- |
| [serde_json](https://github.com/serde-rs/json) | `1.0.125` | `1.0.127` |
| [serde](https://github.com/serde-rs/serde) | `1.0.208` | `1.0.209` |
| [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` |
| [quote](https://github.com/dtolnay/quote) | `1.0.36` | `1.0.37` |
| [syn](https://github.com/dtolnay/syn) | `1.0.109` | `2.0.52` |
| [cc](https://github.com/rust-lang/cc-rs) | `1.1.13` | `1.1.14` |
| [fastrand](https://github.com/smol-rs/fastrand) | `2.1.0` | `2.1.1` |
| [serde_derive](https://github.com/serde-rs/serde) | `1.0.208` | `1.0.209` |
| [tempfile](https://github.com/Stebalien/tempfile) | `3.11.0` | `3.12.0` |
| [unicode-properties](https://github.com/unicode-rs/unicode-properties) | `0.1.1` | `0.1.2` |


Updates `serde_json` from 1.0.125 to 1.0.127
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/1.0.125...1.0.127)

Updates `serde` from 1.0.208 to 1.0.209
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.208...v1.0.209)

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 `quote` from 1.0.36 to 1.0.37
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](https://github.com/dtolnay/quote/compare/1.0.36...1.0.37)

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.13 to 1.1.14
- [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.13...cc-v1.1.14)

Updates `fastrand` from 2.1.0 to 2.1.1
- [Release notes](https://github.com/smol-rs/fastrand/releases)
- [Changelog](https://github.com/smol-rs/fastrand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/fastrand/compare/v2.1.0...v2.1.1)

Updates `serde_derive` from 1.0.208 to 1.0.209
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.208...v1.0.209)

Updates `tempfile` from 3.11.0 to 3.12.0
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/commits)

Updates `unicode-properties` from 0.1.1 to 0.1.2
- [Commits](https://github.com/unicode-rs/unicode-properties/compare/v0.1.1...v0.1.2)

---
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: 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: quote
  dependency-type: direct:production
  update-type: version-update:semver-patch
  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: fastrand
  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
- dependency-name: tempfile
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: lock
- dependency-name: unicode-properties
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-26 09:00:42 +00:00
Сырцев Вадим Игоревич
38e3f6caa6
Merge pull request #1147 from shdwchn10/deps/sqlx-0.8.1-and-others
Bump sqlx, reqwest and other deps. Also bump MSRV to 1.80
2024-08-24 14:56:00 +00:00
Andrey Brusnik
1ea69cf4dc
Fix clippy::manual_inspect lints 2024-08-24 18:46:05 +04:00
Andrey Brusnik
76e2726803
Add MSRV and deps bumps to the changelogs 2024-08-24 18:46:04 +04:00
Andrey Brusnik
cd98dba17e
Bump MSRV to 1.80 2024-08-24 18:16:56 +04:00
Andrey Brusnik
ae20cf1f6b
Explicitly depend on tokio 1.39 and enable io-util feature for tokio in teloxide-core 2024-08-24 18:16:56 +04:00
Andrey Brusnik
5d93b81ea0
Bump deps to: sqlx-0.8.1, tower-0.5.0, reqwest-0.12.7, ron-0.8.1, heck-0.5.0 2024-08-24 18:16:56 +04:00
Сырцев Вадим Игоревич
0c0a024cec
Merge pull request #1144 from goostman-ai/master
Replace Currency enum with String, mention XTR special currency in docs
2024-08-24 14:10:42 +00:00
jc
178db8a027 Update CHANGELOG.md 2024-08-24 18:02:56 +04:00
goostman-ai
7711677580
Merge branch 'teloxide:master' into master 2024-08-24 15:42:29 +02:00
jc
b15ba1d31a Fix RON schema, prettify doc comments 2024-08-24 16:29:28 +04:00
Сырцев Вадим Игоревич
4cbcd426d9
Merge pull request #1146 from Propheci/tba7.2
Add support for TBA 7.2
2024-08-24 10:38:19 +00:00
Akshett Rai Jindal
32de39602d Fix unstructured docs 2024-08-24 16:03:10 +05:30
Akshett Rai Jindal
f4fc11a011 Change id type in BusinessConnection to BusinessConnectionId 2024-08-24 16:02:42 +05:30
Akshett Rai Jindal
e10af95add Mark BusinessConnectionId as serde(transparent) 2024-08-24 15:36:55 +05:30
Akshett Rai Jindal
17b3807d3f Use serde(flatten) for BusinessConnectionId 2024-08-24 15:29:52 +05:30
Akshett Rai Jindal
951c8f1438 Derive Default for BusinessIntro, BusinessLocation and BusinessOpeningHours 2024-08-24 15:15:19 +05:30
Akshett Rai Jindal
08d7d8f6b4 Move business_connection_id from Message to MessageCommon 2024-08-24 15:15:19 +05:30
Akshett Rai Jindal
cef553eeae Add serde default to can_connect_to_business in Me 2024-08-24 15:15:19 +05:30
Akshett Rai Jindal
21b164a416 Change some Option<bool> fields to bool in KeyboardButtonRequestUsers 2024-08-24 15:15:19 +05:30
Akshett Rai Jindal
ca5dddab54 Remove unecessary serde defaults and remove params from bool setters 2024-08-24 15:15:19 +05:30
Akshett Rai Jindal
31caa3ba04 Add more docs for business related structs 2024-08-24 15:15:19 +05:30
Akshett Rai Jindal
2f8e62f401 Use BusinessConnectionId instead of String for business_connection_id fields and parameters 2024-08-24 15:15:19 +05:30
Akshett Rai Jindal
ccc2c68751 Update docs and changelogs 2024-08-24 15:15:18 +05:30
Akshett Rai Jindal
c9eec050d0 Wrap Public variant of ChatKind in Box 2024-08-24 15:14:19 +05:30
Akshett Rai Jindal
057a37cea0 Update CHANGELOG.md to add changes related to #1146 2024-08-24 15:14:16 +05:30
Akshett Rai Jindal
336ae4f646 Fix tests for 'full' features 2024-08-24 15:12:54 +05:30
Akshett Rai Jindal
5040813737 Bump TBA version 2024-08-24 15:12:54 +05:30
Akshett Rai Jindal
68b7aba836 Add method getBusinessConnection 2024-08-24 15:12:54 +05:30
Akshett Rai Jindal
7fe9278ce8 Add DeletedBusinessMessages variant to UpdateKind 2024-08-24 15:12:54 +05:30
Akshett Rai Jindal
b15d85ec0a Move BusinessOpeningHoursInterval to separate file 2024-08-24 15:12:54 +05:30