refac
This commit is contained in:
1 parent
bab71ed08b
commit
d484a2a99e
4 files changed
+25
-9
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user