From 97bda44718397e050e68f9f64516d4d79ce032d0 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Mon, 6 Apr 2020 23:59:37 +0300 Subject: [PATCH] #289 BotCommand type init fix --- aiogram/types/bot_command.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aiogram/types/bot_command.py b/aiogram/types/bot_command.py index a97238e5..39e38e4f 100644 --- a/aiogram/types/bot_command.py +++ b/aiogram/types/bot_command.py @@ -10,3 +10,6 @@ class BotCommand(base.TelegramObject): """ command: base.String = fields.Field() description: base.String = fields.Field() + + def __init__(self, command: base.String, description: base.String): + super(BotCommand, self).__init__(command=command, description=description) \ No newline at end of file