[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:
|
async def _format_ping(_: dict) -> str:
|
||||||
return None
|
return "Ping!"
|
||||||
|
|
||||||
|
|
||||||
async def _format_public(payload: dict) -> str:
|
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_web_page_preview=True,
|
||||||
disable_notification=True
|
disable_notification=True
|
||||||
)
|
)
|
||||||
async with session.post(api_url,
|
async with session.post(api_url, data=data) as resp: # type: ClientResponse
|
||||||
data=data) as resp: # type: ClientResponse
|
|
||||||
logging.info('%s, %s, %s', str(chat_id), str(resp.status), repr(text))
|
logging.info('%s, %s, %s', str(chat_id), str(resp.status), repr(text))
|
||||||
tg_response = await resp.json()
|
tg_response = await resp.json()
|
||||||
logging.info("Telegram response: %s", tg_response)
|
logging.info("Telegram response: %s", tg_response)
|
||||||
|
|||||||
Reference in New Issue
Block a user