(exc: Exception)
| 942 | |
| 943 | |
| 944 | def _is_missing_chat_error(exc: Exception) -> bool: |
| 945 | normalized = " ".join(part for part in (str(exc), repr(exc)) if part).lower() |
| 946 | if not normalized: |
| 947 | return False |
| 948 | return any(pattern.search(normalized) for pattern in _MISSING_CHAT_ERROR_PATTERNS) |
| 949 | |
| 950 | |
| 951 | async def _send_with_internal_fallback( |
no outgoing calls
no test coverage detected