maxnathaniel commented on code in PR #28953:
URL: https://github.com/apache/airflow/pull/28953#discussion_r1070729407
##########
airflow/providers/telegram/hooks/telegram.py:
##########
@@ -118,15 +118,15 @@ def __get_chat_id(self, chat_id: str | None,
telegram_conn_id: str | None) -> st
stop=tenacity.stop_after_attempt(5),
wait=tenacity.wait_fixed(1),
)
- def send_message(self, api_params: dict) -> None:
+ async def send_message(self, api_params: dict) -> None:
Review Comment:
Thanks for your feedback. My apologies for introducing breaking changes -
completely missed that users will be calling hook methods in their code. I have
made the updates as per your recommendation, tested it, and also updated the
unit test cases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]