Skip to content

Commit

Permalink
Bump version for bugfix release
Browse files Browse the repository at this point in the history
  • Loading branch information
Badiboy committed Jun 8, 2024
1 parent 83a703e commit a3f7e30
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
copyright = f'2022-{datetime.now().year}, {author}'

# The full version, including alpha/beta/rc tags
release = '4.19.0'
release = '4.19.1'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "pyTelegramBotAPI"
version = "4.19.0"
version = "4.19.1"
description = "Python Telegram bot api."
authors = [{name = "eternnoir", email = "[email protected]"}]
license = {text = "GPL2"}
Expand Down
19 changes: 10 additions & 9 deletions telebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,6 @@ def copy_message(
:return: On success, the MessageId of the sent message is returned.
:rtype: :class:`telebot.types.MessageID`
"""

disable_notification = self.disable_notification if (disable_notification is None) else disable_notification
Expand Down Expand Up @@ -1903,7 +1902,8 @@ def copy_message(
apihelper.copy_message(self.token, chat_id, from_chat_id, message_id, caption=caption,
parse_mode=parse_mode, caption_entities=caption_entities, disable_notification=disable_notification,
reply_markup=reply_markup, timeout=timeout, protect_content=protect_content,
message_thread_id=message_thread_id, reply_parameters=reply_parameters, show_caption_above_media=show_caption_above_media))
message_thread_id=message_thread_id, reply_parameters=reply_parameters,
show_caption_above_media=show_caption_above_media))


def delete_message(self, chat_id: Union[int, str], message_id: int,
Expand Down Expand Up @@ -1950,13 +1950,13 @@ def delete_messages(self, chat_id: Union[int, str], message_ids: List[int]):
:type message_ids: :obj:`list` of :obj:`int`
:return: Returns True on success.
"""
return apihelper.delete_messages(self.token, chat_id, message_ids)


def forward_messages(self, chat_id: Union[str, int], from_chat_id: Union[str, int], message_ids: List[int], disable_notification: Optional[bool]=None,
message_thread_id: Optional[int]=None, protect_content: Optional[bool]=None) -> List[types.MessageID]:
def forward_messages(self, chat_id: Union[str, int], from_chat_id: Union[str, int], message_ids: List[int],
disable_notification: Optional[bool]=None, message_thread_id: Optional[int]=None,
protect_content: Optional[bool]=None) -> List[types.MessageID]:
"""
Use this method to forward multiple messages of any kind. If some of the specified messages can't be found or forwarded, they are skipped.
Service messages and messages with protected content can't be forwarded. Album grouping is kept for forwarded messages.
Expand Down Expand Up @@ -2237,9 +2237,9 @@ def send_photo(
self.token, chat_id, photo, caption=caption, reply_markup=reply_markup,
parse_mode=parse_mode, disable_notification=disable_notification, timeout=timeout,
caption_entities=caption_entities, protect_content=protect_content,
message_thread_id=message_thread_id, has_spoiler=has_spoiler, reply_parameters=reply_parameters, business_connection_id=business_connection_id,
message_effect_id=message_effect_id, show_caption_above_media=show_caption_above_media))

message_thread_id=message_thread_id, has_spoiler=has_spoiler, reply_parameters=reply_parameters,
business_connection_id=business_connection_id, message_effect_id=message_effect_id,
show_caption_above_media=show_caption_above_media))


def send_audio(
Expand Down Expand Up @@ -5540,7 +5540,8 @@ def edit_message_caption(

result = apihelper.edit_message_caption(
self.token, caption, chat_id=chat_id, message_id=message_id, inline_message_id=inline_message_id,
parse_mode=parse_mode, caption_entities=caption_entities, reply_markup=reply_markup, show_caption_above_media=show_caption_above_media)
parse_mode=parse_mode, caption_entities=caption_entities, reply_markup=reply_markup,
show_caption_above_media=show_caption_above_media)

if type(result) == bool:
return result
Expand Down
8 changes: 4 additions & 4 deletions telebot/apihelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ def send_photo(
caption=None, reply_markup=None,
parse_mode=None, disable_notification=None, timeout=None,
caption_entities=None, protect_content=None,
message_thread_id=None, has_spoiler=None, reply_parameters=None, business_connection_id=None, message_effect_id=None,
show_caption_above_media=None):
message_thread_id=None, has_spoiler=None, reply_parameters=None, business_connection_id=None,
message_effect_id=None, show_caption_above_media=None):
method_url = r'sendPhoto'
payload = {'chat_id': chat_id}
files = None
Expand Down Expand Up @@ -717,8 +717,8 @@ def send_chat_action(token, chat_id, action, timeout=None, message_thread_id=Non
def send_video(token, chat_id, data, duration=None, caption=None, reply_markup=None,
parse_mode=None, supports_streaming=None, disable_notification=None, timeout=None,
thumbnail=None, width=None, height=None, caption_entities=None, protect_content=None,
message_thread_id=None, has_spoiler=None, reply_parameters=None, business_connection_id=None, message_effect_id=None,
show_caption_above_media=None):
message_thread_id=None, has_spoiler=None, reply_parameters=None, business_connection_id=None,
message_effect_id=None, show_caption_above_media=None):
method_url = r'sendVideo'
payload = {'chat_id': chat_id}
files = None
Expand Down
2 changes: 1 addition & 1 deletion telebot/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '4.19.0'
__version__ = '4.19.1'

0 comments on commit a3f7e30

Please sign in to comment.