Skip to content

Commit f0c9670

Browse files
author
Mustafa Asaad
committed
Update to version 5.5
1 parent 118fb78 commit f0c9670

5 files changed

Lines changed: 26 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# CHANGELOG
2+
## _v5.5_
3+
- Bots are now allowed to contact users who sent a join request to a chat where the bot is an administrator with the can_invite_users administrator right – even if the user never interacted with the bot before.
4+
- Added support for mentioning users by their ID in inline keyboards. This will only work in Telegram versions released after December 7, 2021. Older clients will display unsupported message.
5+
- Added the methods banChatSenderChat and unbanChatSenderChat for banning and unbanning channel chats in supergroups and channels.
6+
- Added the field has_private_forwards to the class Chat for private chats, which can be used to check the possibility of mentioning the user by their ID.
7+
- Added the field has_protected_content to the classes Chat and Message.
8+
- Added the field is_automatic_forward to the class Message.
9+
210
## _v5.4_
311
- Added the the parameter creates_join_request to the methods createChatInviteLink and editChatInviteLink for managing chat invite links that create join requests (read more about this on our blog).
412
- Added the fields creates_join_request and pending_join_request_count to the class ChatInviteLink.

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The Ultimate [Telegram Bot API](https://core.telegram.org/bots/api) Client Framework
44

55
[![GPLv2 license](https://img.shields.io/badge/LICENSE-GPLv2-red)](https://github.com/ma24th/tgbotapi/blob/master/LICENSE)
6-
[![PyPI](https://img.shields.io/badge/PyPI-v5.4-yellow.svg)](https://pypi.org/project/tgbotapi/)
6+
[![PyPI](https://img.shields.io/badge/PyPI-v5.5-yellow.svg)](https://pypi.org/project/tgbotapi/)
77
![Python package](https://github.com/MA24th/tgbotapi/workflows/Python%20package/badge.svg)
88
![Upload Python Package](https://github.com/MA24th/tgbotapi/workflows/Upload%20Python%20Package/badge.svg)
99

@@ -103,13 +103,13 @@ bot.polling()
103103
To start the bot, simply open up a terminal and enter `python echo_bot.py` to run the bot! Test it by sending commands ('/start' and '/help') and arbitrary text messages.
104104

105105
### ChangeLog
106-
**_version 5.4_**
107-
- Added the the parameter creates_join_request to the methods createChatInviteLink and editChatInviteLink for managing chat invite links that create join requests (read more about this on our blog).
108-
- Added the fields creates_join_request and pending_join_request_count to the class ChatInviteLink.
109-
- Added the field name to the class ChatInviteLink and the parameters name to the methods createChatInviteLink and editChatInviteLink for managing invite link names.
110-
- Added updates about new requests to join the chat, represented by the class ChatJoinRequest and the field chat_join_request in the Update class. The bot must be an administrator in the chat with the can_invite_users administrator right to receive these updates.
111-
- Added the methods approveChatJoinRequest and declineChatJoinRequest for managing requests to join the chat.
112-
- Added support for the choose_sticker action in the method sendChatAction.
106+
**_version 5.5_**
107+
- Bots are now allowed to contact users who sent a join request to a chat where the bot is an administrator with the can_invite_users administrator right – even if the user never interacted with the bot before.
108+
- Added support for mentioning users by their ID in inline keyboards. This will only work in Telegram versions released after December 7, 2021. Older clients will display unsupported message.
109+
- Added the methods banChatSenderChat and unbanChatSenderChat for banning and unbanning channel chats in supergroups and channels.
110+
- Added the field has_private_forwards to the class Chat for private chats, which can be used to check the possibility of mentioning the user by their ID.
111+
- Added the field has_protected_content to the classes Chat and Message.
112+
- Added the field is_automatic_forward to the class Message.
113113
**_Fixes_**
114114
- No Issues until Now
115115

SECURITY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
| > 5.2 | :white_check_mark: |
1515
| > 5.3 | :white_check_mark: |
1616
| > 5.4 | :white_check_mark: |
17+
| > 5.5 | :white_check_mark: |
1718

1819
## Reporting a Vulnerability
1920

docs/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The Ultimate [Telegram Bot API](https://core.telegram.org/bots/api) Client Framework
44

55
[![GPLv2 license](https://img.shields.io/badge/LICENSE-GPLv2-red)](https://github.com/ma24th/tgbotapi/blob/master/LICENSE)
6-
[![PyPI](https://img.shields.io/badge/PyPI-v5.4-yellow.svg)](https://pypi.org/project/tgbotapi/)
6+
[![PyPI](https://img.shields.io/badge/PyPI-v5.5-yellow.svg)](https://pypi.org/project/tgbotapi/)
77
![Python package](https://github.com/MA24th/tgbotapi/workflows/Python%20package/badge.svg)
88
![Upload Python Package](https://github.com/MA24th/tgbotapi/workflows/Upload%20Python%20Package/badge.svg)
99

@@ -103,13 +103,13 @@ bot.polling()
103103
To start the bot, simply open up a terminal and enter `python echo_bot.py` to run the bot! Test it by sending commands ('/start' and '/help') and arbitrary text messages.
104104

105105
### ChangeLog
106-
**_version 5.4_**
107-
- Added the the parameter creates_join_request to the methods createChatInviteLink and editChatInviteLink for managing chat invite links that create join requests (read more about this on our blog).
108-
- Added the fields creates_join_request and pending_join_request_count to the class ChatInviteLink.
109-
- Added the field name to the class ChatInviteLink and the parameters name to the methods createChatInviteLink and editChatInviteLink for managing invite link names.
110-
- Added updates about new requests to join the chat, represented by the class ChatJoinRequest and the field chat_join_request in the Update class. The bot must be an administrator in the chat with the can_invite_users administrator right to receive these updates.
111-
- Added the methods approveChatJoinRequest and declineChatJoinRequest for managing requests to join the chat.
112-
- Added support for the choose_sticker action in the method sendChatAction.
106+
**_version 5.5_**
107+
- Bots are now allowed to contact users who sent a join request to a chat where the bot is an administrator with the can_invite_users administrator right – even if the user never interacted with the bot before.
108+
- Added support for mentioning users by their ID in inline keyboards. This will only work in Telegram versions released after December 7, 2021. Older clients will display unsupported message.
109+
- Added the methods banChatSenderChat and unbanChatSenderChat for banning and unbanning channel chats in supergroups and channels.
110+
- Added the field has_private_forwards to the class Chat for private chats, which can be used to check the possibility of mentioning the user by their ID.
111+
- Added the field has_protected_content to the classes Chat and Message.
112+
- Added the field is_automatic_forward to the class Message.
113113
**_Fixes_**
114114
- No Issues until Now
115115

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def read(filename):
99

1010

1111
setup(name='tgbotapi',
12-
version='5.4',
12+
version='5.5',
1313
description='The Ultimate Telegram Bot API Client Framework',
1414
long_description=read('README.rst'),
1515
long_description_content_type="text/x-rst",

0 commit comments

Comments
 (0)