Commit graph

652 commits

Author SHA1 Message Date
LasterAlex
154430e268
Added inline buttons example 2024-11-17 01:55:48 +02:00
LasterAlex
4dcbba199e
Better errors + dptree integration 2024-11-17 01:21:00 +02:00
LasterAlex
8d61e7baff
Added basic parse and stringify for new proc macro InlineButtons 2024-11-15 21:46:35 +02:00
hirrolot
666ef06ac5
Apply various stylistic fixes 2024-11-10 23:28:41 -05:00
LasterAlex
27f147fb0f
Env TELOXIDE_API_URL now can be used in Bot::from_env 2024-11-11 03:00:15 +02:00
Lewis Pearson
97319c887b
Merge branch 'master' into fix-stack-overflow 2024-10-21 20:08:23 -04:00
YouKnow
c1873e0b18 renamed Render to Renderer 2024-10-22 03:11:12 +03:30
Lewis Pearson
cd3dcc1611
Write a clarifying comment on Tokio's stack size 2024-10-21 19:39:26 -04:00
hirrolot
0e7582225f
Use src/utils/render.rs instead of mod.rs 2024-10-21 02:55:04 -04:00
hirrolot
e91db758c8
Adjust wording 2024-10-21 02:53:32 -04:00
Lewis Pearson
8826733dbd
Improve wording 2024-10-21 02:11:50 -04:00
LasterAlex
89b8247cbf
Fixed changelog + more clear imports 2024-10-20 12:28:49 +03:00
LasterAlex
2f08590685
Removed unnecessary trait bounds 2024-10-20 04:48:29 +03:00
LasterAlex
f8be5ccd8c
Added stack size variability on dispatch 2024-10-20 04:19:17 +03:00
YouKnow
fa08605c02
Merge branch 'master' into master 2024-10-20 02:29:04 +03:30
YouKnow
adb9830c93 Improve documentation and code comments 2024-10-20 02:26:18 +03:30
LasterAlex
4379f5a72f
Merge branch 'master' into fix-multipart-thread-id-serialization 2024-10-18 16:10:03 +03:00
LasterAlex
eee0a374e4
Fixed InlineQueryResultsButton serialization 2024-10-14 21:03:00 +03:00
LasterAlex
5434639cca
Fixed newtype serialization in multipart requests 2024-10-13 23:04:49 +03:00
Lewis Pearson
ebe89a637a
Update the teloxide-core changelog 2024-10-05 18:15:42 -04:00
Ali
0f4ee3023a fmt 2024-10-03 12:36:15 +03:30
Ali
dad067da44 removing useless Generic T on selective, adding tests 2024-10-03 12:35:53 +03:30
LasterAlex
2e7cd55057
Deleted unnecessary tests 2024-09-23 11:41:07 +03:00
LasterAlex
6e484382a9
Added sugar to buttons.rs example 2024-09-23 02:46:09 +03:00
LasterAlex
3b618a7b5a
Added syntactic sugar to all methods with message_id and chat_id 2024-09-23 02:29:28 +03:00
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
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
LasterAlex
968fd5fbc3
Cargo fmt 2024-08-30 09:47:15 +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
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
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
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
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