mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added enumerations
This commit is contained in:
parent
964418f4f0
commit
3beecf851b
30 changed files with 289 additions and 27 deletions
16
.butcher/enums/BotCommandScopeType.yml
Normal file
16
.butcher/enums/BotCommandScopeType.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
name: BotCommandScopeType
|
||||
description: |
|
||||
This object represents the scope to which bot commands are applied.
|
||||
|
||||
Source: https://core.telegram.org/bots/api#botcommandscope
|
||||
multi_parse:
|
||||
attribute: type
|
||||
regexp: "must be ([a-z_]+)"
|
||||
entities:
|
||||
- BotCommandScopeDefault
|
||||
- BotCommandScopeAllPrivateChats
|
||||
- BotCommandScopeAllGroupChats
|
||||
- BotCommandScopeAllChatAdministrators
|
||||
- BotCommandScopeChat
|
||||
- BotCommandScopeChatAdministrators
|
||||
- BotCommandScopeChatMember
|
||||
22
.butcher/enums/ChatActions.yml
Normal file
22
.butcher/enums/ChatActions.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: ChatAction
|
||||
description: |
|
||||
This object represents bot actions.
|
||||
|
||||
Choose one, depending on what the user is about to receive:
|
||||
|
||||
- typing for text messages,
|
||||
- upload_photo for photos,
|
||||
- record_video or upload_video for videos,
|
||||
- record_voice or upload_voice for voice notes,
|
||||
- upload_document for general files,
|
||||
- choose_sticker for stickers,
|
||||
- find_location for location data,
|
||||
- record_video_note or upload_video_note for video notes.
|
||||
|
||||
Source: https://core.telegram.org/bots/api#sendchataction
|
||||
parse:
|
||||
format: rst
|
||||
entity: sendChatAction
|
||||
category: methods
|
||||
attribute: action
|
||||
regexp: '\*([a-z_]+)\*'
|
||||
15
.butcher/enums/ChatMemberStatus.yml
Normal file
15
.butcher/enums/ChatMemberStatus.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
name: ChatMemberStatus
|
||||
description: |
|
||||
This object represents chat member status.
|
||||
|
||||
Source: https://core.telegram.org/bots/api#chatmember
|
||||
multi_parse:
|
||||
attribute: status
|
||||
regexp: "'([a-z_]+)'"
|
||||
entities:
|
||||
- ChatMemberOwner
|
||||
- ChatMemberAdministrator
|
||||
- ChatMemberMember
|
||||
- ChatMemberRestricted
|
||||
- ChatMemberLeft
|
||||
- ChatMemberBanned
|
||||
9
.butcher/enums/ChatType.yml
Normal file
9
.butcher/enums/ChatType.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
name: ChatType
|
||||
description: |
|
||||
This object represents a chat type
|
||||
|
||||
Source: https://core.telegram.org/bots/api#chat
|
||||
parse:
|
||||
entity: Chat
|
||||
attribute: type
|
||||
regexp: "'([a-z]+)'"
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
name: ContentType
|
||||
description: "Message content type"
|
||||
description:
|
||||
This object represents a type of content in message
|
||||
static:
|
||||
UNKNOWN: unknown
|
||||
ANY: any
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
name: DiceEmoji
|
||||
description: "Emoji on which the dice throw animation is based"
|
||||
description: |
|
||||
Emoji on which the dice throw animation is based
|
||||
|
||||
Source: https://core.telegram.org/bots/api#dice
|
||||
static:
|
||||
DICE: 🎲
|
||||
DART: 🎯
|
||||
13
.butcher/enums/MenuButtonType.yml
Normal file
13
.butcher/enums/MenuButtonType.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
name: MenuButtonType
|
||||
description: |
|
||||
This object represents an type of Menu button
|
||||
|
||||
Source: https://core.telegram.org/bots/api#menubuttondefault
|
||||
multi_parse:
|
||||
format: rst
|
||||
attribute: type
|
||||
regexp: '\*([a-z_]+)\*'
|
||||
entities:
|
||||
- MenuButtonDefault
|
||||
- MenuButtonCommands
|
||||
- MenuButtonWebApp
|
||||
10
.butcher/enums/MessageEntityType.yml
Normal file
10
.butcher/enums/MessageEntityType.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
name: MessageEntityType
|
||||
description: |
|
||||
This object represents type of message entity
|
||||
|
||||
Source: https://core.telegram.org/bots/api#messageentity
|
||||
parse:
|
||||
entity: MessageEntity
|
||||
category: types
|
||||
attribute: type
|
||||
regexp: "'([a-z_]+)'"
|
||||
9
.butcher/enums/ParseMode.yml
Normal file
9
.butcher/enums/ParseMode.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
name: ParseMode
|
||||
description: |
|
||||
Formatting options
|
||||
|
||||
Source: https://core.telegram.org/bots/api#formatting-options
|
||||
static:
|
||||
MARKDOWN_V2: MarkdownV2
|
||||
MARKDOWN: Markdown
|
||||
HTML: HTML
|
||||
9
.butcher/enums/PollType.yml
Normal file
9
.butcher/enums/PollType.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
name: PollType
|
||||
description: |
|
||||
This object represents poll type
|
||||
|
||||
Source: https://core.telegram.org/bots/api#poll
|
||||
parse:
|
||||
entity: Poll
|
||||
attribute: type
|
||||
regexp: "'([a-z]+)'"
|
||||
9
.butcher/enums/UpdateType.yml
Normal file
9
.butcher/enums/UpdateType.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
name: UpdateType
|
||||
description: |
|
||||
This object represents the complete list of allowed update types
|
||||
|
||||
Source: https://core.telegram.org/bots/api#update
|
||||
extract:
|
||||
entity: Update
|
||||
exclude:
|
||||
- update_id
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
name: ChatType
|
||||
description: "Type of chat"
|
||||
parse:
|
||||
entity: Chat
|
||||
attribute: type
|
||||
regexp: "'([a-z]+)'"
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
name: UpdateType
|
||||
description: Known update types
|
||||
extract:
|
||||
entity: Update
|
||||
exclude:
|
||||
- update_id
|
||||
Loading…
Add table
Add a link
Reference in a new issue