Skip to content

Commit 425f17b

Browse files
committed
Prepare 0.40.0 release
1 parent fb85f72 commit 425f17b

File tree

3 files changed

+58
-5
lines changed

3 files changed

+58
-5
lines changed

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
11
# Changelog
22

3+
## 0.40.0 (16.08.2025)
4+
5+
### Bot API
6+
7+
#### 9.2
8+
9+
- Added types:
10+
`ApproveSuggestedPost`, `DeclineSuggestedPost`, `DirectMessagesTopic`, `SuggestedPostApprovalFailed`,
11+
`SuggestedPostApproved`, `SuggestedPostDeclined`, `SuggestedPostInfo`, `SuggestedPostPaid`,
12+
`SuggestedPostParameters`, `SuggestedPostPrice`, `SuggestedPostRefunded`, `SuggestedPostRefundReason`,
13+
`SuggestedPostState`.
14+
- Added enum variants:
15+
- `MessageData`: `SuggestedPostApproved`, `SuggestedPostApprovalFailed`, `SuggestedPostDeclined`,
16+
`SuggestedPostPaid`, `SuggestedPostRefunded`.
17+
- Added fields:
18+
- `ChatAdministratorRights`: `can_manage_direct_messages`.
19+
- `ChatFullInfo`: `is_direct_messages`, `parent_chat`.
20+
- `ChatMemberAdministrator`: `can_manage_direct_messages`.
21+
- `Gift`: `publisher_chat`.
22+
- `Message`: `direct_messages_topic`, `is_paid_post`, `reply_to_checklist_task_id`, `suggested_post_info`.
23+
- `SupergroupChat`: `is_direct_messages`.
24+
- `UniqueGift`: `publisher_chat`.
25+
- Added methods:
26+
- `ChatAdministratorRights`: `with_can_manage_direct_messages`.
27+
- `ChatMemberAdministrator`: `with_can_manage_direct_messages`.
28+
- `CopyMessage`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`.
29+
- `CopyMessages`:`with_direct_messages_topic_id`.
30+
- `ForwardMessage`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`.
31+
- `ForwardMessages`:`with_direct_messages_topic_id`.
32+
- `Gift`: `with_publisher_chat`.
33+
- `Message`: `with_direct_messages_topic`, `with_is_paid_post`, `with_reply_to_checklist_task_id`,
34+
`with_suggested_post_info`.
35+
- `PromoteChatMember`: `with_can_manage_direct_messages`.
36+
- `ReplyParameters`: `with_checklist_task_id`.
37+
- `SendAnimation`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
38+
- `SendAudio`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
39+
- `SendContact`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
40+
- `SendDice`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
41+
- `SendDocument`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
42+
- `SendInvoice`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
43+
- `SendLocation`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
44+
- `SendMediaGroup`:`with_direct_messages_topic_id`.
45+
- `SendMessage`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
46+
- `SendPaidMedia`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
47+
- `SendPhoto`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
48+
- `SendSticker`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
49+
- `SendVenue`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
50+
- `SendVideo`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
51+
- `SendVideoNote`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
52+
- `SendVoice`: `with_direct_messages_topic_id`, `with_suggested_post_parameters`,
53+
- `SupergroupChat`: `with_is_direct_messages`.
54+
- `UniqueGift`: `new`, `with_publisher_chat`.
55+
356
## 0.39.1 (08.07.2025)
457

558
### Bot API

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tgbot"
33
description = "A Telegram Bot library"
4-
version = "0.39.1"
4+
version = "0.40.0"
55
authors = ["Ross Nomann <rossnomann@protonmail.com>"]
66
edition = "2024"
77
readme = "README.md"

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ A full-featured Telegram Bot API client.
1010

1111
```toml
1212
[dependencies]
13-
tgbot = "0.39.1"
13+
tgbot = "0.40.0"
1414
```
1515

1616
## Examples
1717

18-
See examples in the [examples](https://github.com/tg-rs/tgbot/tree/0.39.1/examples) directory.
18+
See examples in the [examples](https://github.com/tg-rs/tgbot/tree/0.40.0/examples) directory.
1919

2020
To run an example you need to create a `.env` file:
2121

@@ -34,8 +34,8 @@ This project adheres to [ZeroVer](https://0ver.org/).
3434
- [Latest documentation](https://docs.rs/tgbot)
3535
- [Master documentation](https://tg-rs.github.io/tgbot/tgbot/)
3636
- [Telegram Chat](https://t.me/tgrsusers)
37-
- [Changelog](https://github.com/tg-rs/tgbot/tree/0.39.1/CHANGELOG.md)
38-
- [Code of Conduct](https://github.com/tg-rs/tgbot/tree/0.39.1/CODE_OF_CONDUCT.md)
37+
- [Changelog](https://github.com/tg-rs/tgbot/tree/0.40.0/CHANGELOG.md)
38+
- [Code of Conduct](https://github.com/tg-rs/tgbot/tree/0.40.0/CODE_OF_CONDUCT.md)
3939

4040
## LICENSE
4141

0 commit comments

Comments
 (0)