(request: Request)
| 40 | |
| 41 | @routes.post("/") |
| 42 | async def github_webhook_post_handler(request: Request) -> Response: |
| 43 | tg_chat_id: Union[str, int, bool] = await validate_github_webhook(request) |
| 44 | if not tg_chat_id: |
| 45 | return web.Response(status=403, text="403: Forbidden") |
| 46 | tg_status = await send_to_telegram(session, tg_chat_id, request) |
| 47 | return web.Response(text=f"Send to Telegram: {tg_status}") |
| 48 | |
| 49 | |
| 50 | async def get_session() -> ClientSession: |
nothing calls this directly
no test coverage detected