#289 added setMyCommands method; added BotCommand type

This commit is contained in:
Oleg A 2020-04-05 16:35:56 +03:00
parent 0f245bbf56
commit b77ed1ad92
4 changed files with 32 additions and 0 deletions

View file

@ -3,6 +3,7 @@ from . import fields
from .animation import Animation
from .audio import Audio
from .auth_widget_data import AuthWidgetData
from .bot_command import BotCommand
from .callback_game import CallbackGame
from .callback_query import CallbackQuery
from .chat import Chat, ChatActions, ChatType

View file

@ -0,0 +1,12 @@
from . import base
from . import fields
class BotCommand(base.TelegramObject):
"""
This object represents a bot command.
https://core.telegram.org/bots/api#botcommand
"""
command: base.String = fields.Field()
description: base.String = fields.Field()