This commit is contained in:
Timothy Jaeryang Baek
2026-07-26 21:07:20 -04:00
parent bab71ed08b
commit d484a2a99e
4 changed files with 25 additions and 9 deletions
+8
View File
@@ -0,0 +1,8 @@
from typing import Optional
NON_SAVED_CHAT_ID_PREFIXES = ('local:', 'channel:')
def is_saved_chat_id(chat_id: Optional[str]) -> bool:
return bool(chat_id) and not chat_id.startswith(NON_SAVED_CHAT_ID_PREFIXES)