False if this provider message id was already processed (webhook retries).
(msg_id: str | None)
| 204 | |
| 205 | |
| 206 | async def first_delivery(msg_id: str | None) -> bool: |
| 207 | """False if this provider message id was already processed (webhook retries).""" |
| 208 | if not msg_id: |
| 209 | return True |
| 210 | r = await get_redis() |
| 211 | return bool(await r.set(f"remote:seen:{msg_id}", "1", nx=True, ex=SEEN_TTL)) |
| 212 | |
| 213 | |
| 214 | async def _revoke(code: str, channel: Channel) -> None: |
nothing calls this directly
no test coverage detected