mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Add script to sync errors with Telegram's JSON
This commit is contained in:
@@ -9,6 +9,15 @@ class Usability(enum.Enum):
|
||||
BOT = 2
|
||||
BOTH = 4
|
||||
|
||||
@property
|
||||
def key(self):
|
||||
return {
|
||||
Usability.UNKNOWN: 'unknown',
|
||||
Usability.USER: 'user',
|
||||
Usability.BOT: 'bot',
|
||||
Usability.BOTH: 'both',
|
||||
}[self]
|
||||
|
||||
|
||||
class MethodInfo:
|
||||
def __init__(self, name, usability, errors, friendly):
|
||||
|
Reference in New Issue
Block a user