This commit is contained in:
2021-01-01 22:20:36 +00:00
parent e2645a1d49
commit 14ca632137
5 changed files with 8 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
from misc import SaveFileMapping, SaveFileObject
from dataclasses import dataclass
from pytgbot.api_types.receivable.updates import Update
import lazymappingstorage
def get_from_id(update):
if update.message and update.message.to_array():
@@ -38,7 +39,7 @@ class User(SaveFileObject):
class UserManager(SaveFileMapping):
def __init__(self):
def __init__(self,file="users.yaml"):
super().__init__(file="users.yaml")
self.from_file()