small fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import yaml
|
||||
|
||||
from pytgbot.bot.sync import SyncBot
|
||||
from pytgbot.bot.synchronous import SyncBot
|
||||
from pytgbot.api_types.sendable.inline import (
|
||||
InlineQueryResultArticle,
|
||||
InputTextMessageContent,
|
||||
|
||||
@@ -44,6 +44,7 @@ class UserManager(SaveFileMapping):
|
||||
self.from_file()
|
||||
|
||||
def from_dict(self,d):
|
||||
if not d: return
|
||||
for k in d:
|
||||
self[k]=User(**d[k])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user