Commit graph

4888 commits

Author SHA1 Message Date
LasterAlex
1f23983bfb
Changed Into to From 2024-09-23 01:36:07 +03:00
LasterAlex
af3305cae8
Updated code with suggestions 2024-09-23 01:30:28 +03:00
YouKnow
e96139634d fixed clippy errors for rust nightly 2024-09-04 20:04:56 +03:30
YouKnow
4f5dcbf4c2 fixed the escape test 2024-09-04 05:18:27 +03:30
YouKnow
9b3d920819 added '\' to markdown escape characters 2024-09-04 05:04:37 +03:30
LasterAlex
2c21479aec
Changed ownership to ref 2024-09-04 03:19:12 +03:00
Tima Kinsart
4f20becee2
Merge pull request #1164 from teloxide/dependabot/cargo/quinn-proto-0.11.8
Bump quinn-proto from 0.11.6 to 0.11.8
2024-09-04 00:11:40 +00:00
dependabot[bot]
aa090612a4
Bump quinn-proto from 0.11.6 to 0.11.8
Bumps [quinn-proto](https://github.com/quinn-rs/quinn) from 0.11.6 to 0.11.8.
- [Release notes](https://github.com/quinn-rs/quinn/releases)
- [Commits](https://github.com/quinn-rs/quinn/compare/quinn-proto-0.11.6...quinn-proto-0.11.8)

---
updated-dependencies:
- dependency-name: quinn-proto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-03 20:50:49 +00:00
LasterAlex
b533a85a33
Cargo fmt 2024-09-03 14:21:57 +03:00
LasterAlex
c9a0fe452d
Added sugar to examples 2024-09-03 14:20:44 +03:00
LasterAlex
9f7d980a70
Removed multiple messages sugar functionality 2024-09-03 13:43:50 +03:00
Tima Kinsart
ecdfe4d50f
Merge pull request #1163 from teloxide/dependabot/cargo/lock-548e46da98
Bump the lock group with 14 updates
2024-09-03 04:02:38 +00:00
dependabot[bot]
2a350a0df2
Bump the lock group with 14 updates
Bumps the lock group with 14 updates:

| Package | From | To |
| --- | --- | --- |
| [tokio](https://github.com/tokio-rs/tokio) | `1.39.3` | `1.40.0` |
| [bitflags](https://github.com/bitflags/bitflags) | `1.3.2` | `2.4.2` |
| [rgb](https://github.com/kornelski/rust-rgb) | `0.8.48` | `0.8.50` |
| [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` |
| [async-trait](https://github.com/dtolnay/async-trait) | `0.1.81` | `0.1.82` |
| [bytemuck](https://github.com/Lokathor/bytemuck) | `1.17.0` | `1.17.1` |
| [cc](https://github.com/rust-lang/cc-rs) | `1.1.14` | `1.1.15` |
| [object](https://github.com/gimli-rs/object) | `0.36.3` | `0.36.4` |
| [rustc_version](https://github.com/djc/rustc-version-rs) | `0.4.0` | `0.4.1` |
| [rustix](https://github.com/bytecodealliance/rustix) | `0.38.34` | `0.38.35` |
| [rustls-native-certs](https://github.com/rustls/rustls-native-certs) | `0.7.2` | `0.7.3` |
| [rustls-webpki](https://github.com/rustls/webpki) | `0.102.6` | `0.102.7` |
| [webpki-roots](https://github.com/rustls/webpki-roots) | `0.26.3` | `0.26.5` |


Updates `tokio` from 1.39.3 to 1.40.0
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.39.3...tokio-1.40.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 `rgb` from 0.8.48 to 0.8.50
- [Changelog](https://github.com/kornelski/rust-rgb/blob/v0.8.50/CHANGELOG.md)
- [Commits](https://github.com/kornelski/rust-rgb/compare/v0.8.48...v0.8.50)

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 `async-trait` from 0.1.81 to 0.1.82
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.81...0.1.82)

Updates `bytemuck` from 1.17.0 to 1.17.1
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md)
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.17.0...v1.17.1)

Updates `cc` from 1.1.14 to 1.1.15
- [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.14...cc-v1.1.15)

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

Updates `rustc_version` from 0.4.0 to 0.4.1
- [Release notes](https://github.com/djc/rustc-version-rs/releases)
- [Commits](https://github.com/djc/rustc-version-rs/compare/v0.4.0...v0.4.1)

Updates `rustix` from 0.38.34 to 0.38.35
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.34...v0.38.35)

Updates `rustls-native-certs` from 0.7.2 to 0.7.3
- [Release notes](https://github.com/rustls/rustls-native-certs/releases)
- [Commits](https://github.com/rustls/rustls-native-certs/compare/v/0.7.2...v/0.7.3)

Updates `rustls-webpki` from 0.102.6 to 0.102.7
- [Release notes](https://github.com/rustls/webpki/releases)
- [Commits](https://github.com/rustls/webpki/compare/v/0.102.6...v/0.102.7)

Updates `webpki-roots` from 0.26.3 to 0.26.5
- [Release notes](https://github.com/rustls/webpki-roots/releases)
- [Commits](https://github.com/rustls/webpki-roots/compare/v/0.26.3...v/0.26.5)

---
updated-dependencies:
- dependency-name: tokio
  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: rgb
  dependency-type: direct:production
  update-type: version-update:semver-patch
  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: async-trait
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: bytemuck
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: cc
  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: rustc_version
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: rustix
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: rustls-native-certs
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: rustls-webpki
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
- dependency-name: webpki-roots
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: lock
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-02 08:51:40 +00:00
LasterAlex
4ac9226f83
Changelog update 2024-08-30 09:50:52 +03:00
LasterAlex
968fd5fbc3
Cargo fmt 2024-08-30 09:47:15 +03:00
LasterAlex
f1b631454f
Merge branch 'add-syntactic-sugar' of github.com:LasterAlex/teloxide into add-syntactic-sugar 2024-08-30 09:38:56 +03:00
LasterAlex
83b178c8ca
More types + some fixes 2024-08-30 09:37:00 +03:00
LasterAlex
2ea545a15c
Added link preview sugar 2024-08-30 09:37:00 +03:00
LasterAlex
c6eb43138d
Added simple json request sugar 2024-08-30 09:37:00 +03:00
LasterAlex
578b665541
Added bot message sugar 2024-08-30 09:37:00 +03:00
Сырцев Вадим Игоревич
4b4dd29d99
Merge pull request #1161 from LasterAlex/fix-vec-msg-ids-serialization
Fix Vec<MessageId> serialization
2024-08-30 06:31:10 +00:00
LasterAlex
173fe6e90d
CHANGELOG added fix 2024-08-30 09:21:26 +03:00
LasterAlex
83f5508495
Cargo fmt 2024-08-30 09:15:28 +03:00
LasterAlex
a52fe8eeb5
Fixed Vec<MessageId> serialization 2024-08-30 09:10:25 +03:00
LasterAlex
fc7abb70d5
More types + some fixes 2024-08-30 09:05:49 +03:00
LasterAlex
cc0f2a73a8
Added link preview sugar 2024-08-30 06:28:39 +03:00
LasterAlex
19ae8dd7a9
Added simple json request sugar 2024-08-30 06:17:44 +03:00
LasterAlex
431d67d535
Added bot message sugar 2024-08-30 05:03:41 +03: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
YouKnow
0c63375c03 perf(render): optimize tag and rendering functions with inline attributes
- Add #[inline] attribute to `as_html` and `as_markdown` methods in Render struct
- Add #[inline(always)] attribute to `start` and `end` methods in Tag struct
- Add #[inline] attribute to `new` methods in SimpleTag and ComplexTag structs
2024-08-27 05:53:37 +03:30
YouKnow
a77e9f58f0 feat(utils): add Render util for recreating formatted text
- Add new `render` module in `crates/teloxide/src/utils.rs`
- Update CHANGELOG.md to document the new Render utility
- Expose ESCAPE_CHARS in markdown.rs for reuse in render module

This new Render utility allows recreating rendered HTML or Markdown
formatted text from text/caption and MessageEntity. It enhances the
library's text formatting capabilities, as discussed in PR #1152.
2024-08-27 02:29:38 +03:30
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