Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ptb to 20.8 #157

Merged
merged 4 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added readme overview page in the docs
- Added Privacy Policy in the docs. It is referenced in the bot **/start** command
- Use mermaid to generate entity relationship diagrams in the docs
- Bump python-telegram-bot to version 2.8

## [3.0.0] - 2023-11-30

Expand Down
11 changes: 1 addition & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,11 @@ classifiers = [
"Operating System :: OS Independent",
]
dependencies = [
"anyio==4.0.0",
"APScheduler==3.10.4",
"certifi==2023.7.22",
"cryptography==41.0.7",
"h11==0.14.0",
"httpcore==0.18.0",
"httpx==0.25.0",
"idna==3.4",
"python-telegram-bot==20.6",
"python-telegram-bot==20.8",
"pytz==2023.3.post1",
"PyYAML==6.0.1",
"six==1.16.0",
"sniffio==1.3.0",
"tzlocal==5.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hehe, housekeeping

]
dynamic = ['version']

Expand Down
6 changes: 3 additions & 3 deletions tests/integration/telegram_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def post(self, endpoint: str, data: dict) -> dict | bool | None:

def __send_message(self, data: "MessageData") -> dict:
reply_message = None
if "reply_to_message_id" in data and data["reply_to_message_id"] is not None:
reply_message = self.__simulator.get_message_by_id(data["reply_to_message_id"])
if "reply_parameters" in data and data["reply_parameters"] is not None:
reply_message = self.__simulator.get_message_by_id(data["reply_parameters"].message_id)
message = Message(
message_id=data.get("message_id", self.get_next_id()),
date=datetime.now().timestamp(),
Expand Down Expand Up @@ -148,7 +148,7 @@ def __copy_message(self, data: "MessageData") -> dict:
return message_dict

def __delete_message(self, data: "MessageData") -> bool:
self.__simulator.delete_messaegge(data["message_id"])
self.__simulator.delete_message(data["message_id"])
return True

def __get_me(self) -> dict:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/telegram_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def add_message(self, message: Message):
"""
self.messages.append(message)

def delete_messaegge(self, message: int | Message):
def delete_message(self, message: int | Message):
"""Removes a message from the list of messages

Args:
Expand Down
Loading