[O] Add message for ping
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user