[O] Add message for ping
Python package / build (3.7) (push) Has been cancelled
Python package / build (3.8) (push) Has been cancelled
Python package / build (3.9) (push) Has been cancelled

This commit is contained in:
Azalea Gui
2023-01-03 04:46:36 -05:00
parent eaf9daafec
commit ef8e8a717d
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -130,8 +130,8 @@ async def _format_issues(payload: dict) -> str:
)
async def _format_ping(_: dict) -> None:
return None
async def _format_ping(_: dict) -> str:
return "Ping!"
async def _format_public(payload: dict) -> str:
+1 -2
View File
@@ -51,8 +51,7 @@ async def send_message(session: ClientSession,
disable_web_page_preview=True,
disable_notification=True
)
async with session.post(api_url,
data=data) as resp: # type: ClientResponse
async with session.post(api_url, data=data) as resp: # type: ClientResponse
logging.info('%s, %s, %s', str(chat_id), str(resp.status), repr(text))
tg_response = await resp.json()
logging.info("Telegram response: %s", tg_response)