Commit graph

693 commits

Author SHA1 Message Date
Sprite
e901012b97 Add shortcuts for other kinds of entities 2022-04-25 17:13:29 +08:00
Waffle Maybe
95f519073b
Merge pull request #208 from SpriteOvO/user-mention-shortcut
Add method `MessageEntity::user_mention`
2022-04-24 20:51:49 +04:00
Sprite
f5f1fa974f Update changelog 2022-04-24 08:20:26 +08:00
Sprite
2bedd358b2 Add method MessageEntity::user_mention 2022-04-24 08:20:23 +08:00
Hirrolot
c06b132b08
Merge pull request #209 from teloxide/update-reqwest-version
Update `reqwest` to v0.11.10
2022-04-24 01:31:58 +06:00
Hirrolot
304267b101 Update reqwest to v0.11.10 2022-04-24 01:26:08 +06:00
Hirrolot
896c9991f4
Merge pull request #207 from teloxide/tune-markups
Tune markups
2022-04-24 01:14:06 +06:00
Hirrolot
1a12dd2388
Merge branch 'master' into tune-markups 2022-04-24 01:10:08 +06:00
Waffle Maybe
80108fd5d7
Merge pull request #206 from teloxide/botapi60
TBA 6.0
2022-04-23 22:49:54 +04:00
Hirrolot
daa43e4dbf Revert "Fix indentation in CHANGELOG.md"
This reverts commit 1229d783e3.
2022-04-24 00:45:57 +06:00
Hirrolot
1229d783e3
Fix indentation in CHANGELOG.md 2022-04-24 00:44:21 +06:00
Hirrolot
739d9738d8 Revert "Remove an unused import in requester_ext.rs"
This reverts commit 2387e11dd1.
2022-04-24 00:08:59 +06:00
Hirrolot
2387e11dd1 Remove an unused import in requester_ext.rs 2022-04-24 00:02:53 +06:00
Hirrolot
9440609a3c Accept Into<String> in InlineKeyboardButton's methods 2022-04-24 00:02:28 +06:00
Hirrolot
012fb94044 Accept IntoIterator in KeyboardMarkup::append_row 2022-04-23 23:57:42 +06:00
Maybe Waffle
b44bbde329 Fix tests 2022-04-21 21:07:03 +04:00
Maybe Waffle
852feaeda4 Update changelog and stuff 2022-04-21 20:15:31 +04:00
Maybe Waffle
dcc4f57013 Reformat requester_forward!{} macro calls
...so they are at least somewhat manageable
2022-04-21 20:15:31 +04:00
Maybe Waffle
d61fe4f85d Add TBA 6.0 methods 2022-04-21 20:15:20 +04:00
Maybe Waffle
cb8f373054 TBA 6.0 field renaming 2022-04-21 16:19:23 +04:00
Maybe Waffle
c1a763eeb0 Add TBA 6.0 types and fields 2022-04-21 16:19:13 +04:00
Waffle Maybe
6bf67ff69a
Merge pull request #205 from teloxide/msrv
MSRV
2022-04-19 13:20:53 +04:00
Maybe Waffle
7c55ad535e Add MSRV check to CI 2022-04-18 22:15:13 +04:00
Maybe Waffle
cf2004dcc2 Correct MSRV 2022-04-18 22:13:36 +04:00
Hirrolot
afe8e2f99f
Merge pull request #204 from teloxide/r051
Release v0.5.1
2022-04-18 16:08:29 +06:00
Maybe Waffle
f98472d798 Release v0.5.1 2022-04-18 14:03:50 +04:00
Maybe Waffle
86d351b35a Remove master docs 2022-04-18 14:02:06 +04:00
Waffle Maybe
ac03ae9549
Merge pull request #203 from teloxide/fix-comment
Document the `errors` module
2022-04-18 13:56:38 +04:00
Hirrolot
9ee3b90988 Update the changelog 2022-04-18 15:52:22 +06:00
Hirrolot
5e8263704d Document the errors module 2022-04-18 15:51:17 +06:00
Hirrolot
3ff23b906a
Merge pull request #202 from teloxide/r050
Prepare 0.5.0 release
2022-04-13 17:05:55 +06:00
Maybe Waffle
22c6330ba8 Prepare 0.5.0 release 2022-04-13 14:58:38 +04:00
Waffle Maybe
b294631121
Merge pull request #198 from teloxide/bare_id
Expose bare chat id
2022-04-13 14:00:57 +04:00
Waffle Maybe
4e35f6de31
Merge pull request #130 from teloxide/chrottle_retries_and_freeze
`Throttle` retries and freeze
2022-04-13 13:58:59 +04:00
Maybe Waffle
6318a7e730 Apply changes from the review
Make `BareChatId` internal.
2022-04-13 13:57:26 +04:00
Maybe Waffle
fa189af463 ix clippyF 2022-04-13 13:56:48 +04:00
Maybe Waffle
57a3731e6b Fix Message::url 2022-04-13 13:56:48 +04:00
Maybe Waffle
7bf3894a31 Correct documentation
From the standpoint of telegram supergroup is a channel...
2022-04-13 13:56:48 +04:00
Maybe Waffle
6ebdeb7f01 Expose bare chat id 2022-04-13 13:56:46 +04:00
Maybe Waffle
edb84691a2 Fix changelog formatting 2022-04-10 19:28:15 +04:00
Maybe Waffle
bf8e11f3a5 satisfy clippy 2022-04-10 19:24:18 +04:00
Maybe Waffle
c24f7f4fc0 Fix typos & stuff 2022-04-10 19:16:41 +04:00
Maybe Waffle
2477a0f945 Fix infinite loop in read_from_rx 2022-04-10 19:04:30 +04:00
Maybe Waffle
af0dd99ef4 Use Duration instead of u32 as the RetryAfter field 2022-04-10 18:48:00 +04:00
Maybe Waffle
d259f8aa23 Add diargam explaining how ThrottlingRequest works
https://asciiflow.com/#/share/eJzFV71u2zAQfhWCkx0EDdqhRbUEGbpmCLoE0BBCpiPBEplSFBwhCFoEHTt0MNw%2BRKeMRZ9GT9KjrB8ykhj9pRUIWTR1d9%2Fdfcej7jAjEcUOS8LwGIckpQI7%2BM7Fty523r9%2Be%2BziFJ7evFNPkt5KmLj45AT1vrLdH9dlXRIffcGlDAN2fUE%2FJTSWBwm4b7nYULFYWoSHm4PVoaMENELUMgqM41Xsf8NdFDELYhRTJk20MaVFENGKe0kELxAZcHZ4a%2BL1uXZg9jATtkIejxTgGK25QBEX1Eit3QVztdQaMFAV5RFAMHy%2BRYEconXfppV4MiFhmOaRjo3157T2CQl6YfKNVIwKgkGiQu5tdKymbp%2FEFQcDujpV4j%2B%2BVnokL1ZbCe78Q196Z0Lng5Hhp3nuyvvkfBpWL1sodW53w0CRT44ich14R%2B3M7fKjq87m8cusNsNqsw712XA%2B1IEbRx0Tm2k%2FL5GAMeB%2FbWlLYONR%2B1pRGZqmOYKX1X2hBpjlxQY7FWx7ChQ0XCVY1qJTPaErVdGvEqZ%2BFsurSTGVPnSmBpjZPG0SYFIi7Zp7Ua5JUAtxTblubKNDZfUvp4lMBCttaFytUmaTjZNQlrJ5y%2Fapt4GeqjJerf1%2FPyHuj9qPkb4medo5oE8%2FCLG4oFKkZ2sJ51O2XD4vScOYTrHZTiGr7EwBtlnRcRA4oQGdREBjOF2dDpB8EURd3bhVss84r4zX12W7RuulJzfbfct2X0aN74Ns7nWbD%2Fl%2FT1r%2BQ7e%2B6fWobrtuX35ZPf15QDbCLOMyWKdlk5U%2B0b%2BPtOA8VhYUgdNy81OqtKNqXfKICgHNW4M06Kg6whN1ivbJzQ1ldKXTKOv%2B1p2etRHf3fge3%2F8FrCjqXw%3D%3D)
2022-04-10 17:34:15 +04:00
Maybe Waffle
ed48de2f75 Simplify freezing 2022-04-10 17:34:15 +04:00
Maybe Waffle
dcbef82e43 Cleanup throttling::request 2022-04-10 17:34:15 +04:00
Maybe Waffle
081b74edb0 Split Throttle implementation into modules 2022-04-10 17:34:02 +04:00
Maybe Waffle
439a345dee Use tokio's try_recv instead of hacks 2022-04-10 17:25:06 +04:00
Maybe Waffle
435181fa0b Improve sanity
Refactor `Throttle` send-future. Previously it was a hand-written future, but
this quickly escalated to an unreadable mess. This commit uses `box`ing and
`async fn` to mitigate this problem.

Hopefully I'm not going insane now
2022-04-10 17:25:06 +04:00