mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
Reworked bot-wide defaults (#1392)
* Reworked defaults * Added changelog and partial docs
This commit is contained in:
parent
1281bf551a
commit
24f59da70d
140 changed files with 608 additions and 530 deletions
2
.butcher/methods/copyMessage/default.yml
Normal file
2
.butcher/methods/copyMessage/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
parse_mode: parse_mode
|
||||
protect_content: protect_content
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
1
.butcher/methods/editMessageCaption/default.yml
Normal file
1
.butcher/methods/editMessageCaption/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
2
.butcher/methods/editMessageText/default.yml
Normal file
2
.butcher/methods/editMessageText/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
disable_web_page_preview: link_preview_is_disabled
|
||||
parse_mode: parse_mode
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
disable_web_page_preview:
|
||||
value: UNSET_DISABLE_WEB_PAGE_PREVIEW
|
||||
1
.butcher/methods/forwardMessage/default.yml
Normal file
1
.butcher/methods/forwardMessage/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
protect_content: protect_content
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
2
.butcher/methods/sendAnimation/default.yml
Normal file
2
.butcher/methods/sendAnimation/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
parse_mode: parse_mode
|
||||
protect_content: protect_content
|
||||
|
|
@ -1,8 +1,4 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
thumbnail:
|
||||
parsed_type:
|
||||
type: entity
|
||||
|
|
|
|||
2
.butcher/methods/sendAudio/default.yml
Normal file
2
.butcher/methods/sendAudio/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
parse_mode: parse_mode
|
||||
protect_content: protect_content
|
||||
|
|
@ -1,8 +1,4 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
thumbnail:
|
||||
parsed_type:
|
||||
type: entity
|
||||
|
|
|
|||
1
.butcher/methods/sendContact/default.yml
Normal file
1
.butcher/methods/sendContact/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
protect_content: protect_content
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
1
.butcher/methods/sendDice/default.yml
Normal file
1
.butcher/methods/sendDice/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
protect_content: protect_content
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
2
.butcher/methods/sendDocument/default.yml
Normal file
2
.butcher/methods/sendDocument/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
parse_mode: parse_mode
|
||||
protect_content: protect_content
|
||||
|
|
@ -1,8 +1,4 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
thumbnail:
|
||||
parsed_type:
|
||||
type: entity
|
||||
|
|
|
|||
1
.butcher/methods/sendGame/default.yml
Normal file
1
.butcher/methods/sendGame/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
protect_content: protect_content
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
1
.butcher/methods/sendInvoice/default.yml
Normal file
1
.butcher/methods/sendInvoice/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
protect_content: protect_content
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
1
.butcher/methods/sendLocation/default.yml
Normal file
1
.butcher/methods/sendLocation/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
protect_content: protect_content
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
1
.butcher/methods/sendMediaGroup/default.yml
Normal file
1
.butcher/methods/sendMediaGroup/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
protect_content: protect_content
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
4
.butcher/methods/sendMessage/default.yml
Normal file
4
.butcher/methods/sendMessage/default.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
disable_web_page_preview: link_preview_is_disabled
|
||||
parse_mode: parse_mode
|
||||
protect_content: protect_content
|
||||
link_preview_options: link_preview
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
disable_web_page_preview:
|
||||
value: UNSET_DISABLE_WEB_PAGE_PREVIEW
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
2
.butcher/methods/sendPhoto/default.yml
Normal file
2
.butcher/methods/sendPhoto/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
parse_mode: parse_mode
|
||||
protect_content: protect_content
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
2
.butcher/methods/sendPoll/default.yml
Normal file
2
.butcher/methods/sendPoll/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
explanation_parse_mode: parse_mode
|
||||
protect_content: protect_content
|
||||
|
|
@ -1,8 +1,4 @@
|
|||
annotations:
|
||||
explanation_parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
close_date:
|
||||
parsed_type:
|
||||
type: union
|
||||
|
|
|
|||
1
.butcher/methods/sendSticker/default.yml
Normal file
1
.butcher/methods/sendSticker/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
protect_content: protect_content
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
1
.butcher/methods/sendVenue/default.yml
Normal file
1
.butcher/methods/sendVenue/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
protect_content: protect_content
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
2
.butcher/methods/sendVideo/default.yml
Normal file
2
.butcher/methods/sendVideo/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
parse_mode: parse_mode
|
||||
protect_content: protect_content
|
||||
|
|
@ -1,8 +1,4 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
thumbnail:
|
||||
parsed_type:
|
||||
type: entity
|
||||
|
|
|
|||
1
.butcher/methods/sendVideoNote/default.yml
Normal file
1
.butcher/methods/sendVideoNote/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
protect_content: protect_content
|
||||
|
|
@ -1,6 +1,4 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
thumbnail:
|
||||
parsed_type:
|
||||
type: entity
|
||||
|
|
|
|||
2
.butcher/methods/sendVoice/default.yml
Normal file
2
.butcher/methods/sendVoice/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
parse_mode: parse_mode
|
||||
protect_content: protect_content
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
1
.butcher/types/InlineQueryResultAudio/default.yml
Normal file
1
.butcher/types/InlineQueryResultAudio/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultCachedAudio/default.yml
Normal file
1
.butcher/types/InlineQueryResultCachedAudio/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultCachedGif/default.yml
Normal file
1
.butcher/types/InlineQueryResultCachedGif/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultCachedPhoto/default.yml
Normal file
1
.butcher/types/InlineQueryResultCachedPhoto/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultCachedVideo/default.yml
Normal file
1
.butcher/types/InlineQueryResultCachedVideo/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultCachedVoice/default.yml
Normal file
1
.butcher/types/InlineQueryResultCachedVoice/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultDocument/default.yml
Normal file
1
.butcher/types/InlineQueryResultDocument/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultGif/default.yml
Normal file
1
.butcher/types/InlineQueryResultGif/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultMpeg4Gif/default.yml
Normal file
1
.butcher/types/InlineQueryResultMpeg4Gif/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultPhoto/default.yml
Normal file
1
.butcher/types/InlineQueryResultPhoto/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultVideo/default.yml
Normal file
1
.butcher/types/InlineQueryResultVideo/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InlineQueryResultVoice/default.yml
Normal file
1
.butcher/types/InlineQueryResultVoice/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
1
.butcher/types/InputMediaAnimation/default.yml
Normal file
1
.butcher/types/InputMediaAnimation/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -15,5 +15,3 @@ annotations:
|
|||
references:
|
||||
category: types
|
||||
name: InputFile
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
1
.butcher/types/InputMediaAudio/default.yml
Normal file
1
.butcher/types/InputMediaAudio/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -15,5 +15,3 @@ annotations:
|
|||
references:
|
||||
category: types
|
||||
name: InputFile
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
1
.butcher/types/InputMediaDocument/default.yml
Normal file
1
.butcher/types/InputMediaDocument/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -15,5 +15,3 @@ annotations:
|
|||
references:
|
||||
category: types
|
||||
name: InputFile
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
1
.butcher/types/InputMediaPhoto/default.yml
Normal file
1
.butcher/types/InputMediaPhoto/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -9,5 +9,3 @@ annotations:
|
|||
references:
|
||||
category: types
|
||||
name: InputFile
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
1
.butcher/types/InputMediaVideo/default.yml
Normal file
1
.butcher/types/InputMediaVideo/default.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
parse_mode: parse_mode
|
||||
|
|
@ -15,5 +15,3 @@ annotations:
|
|||
references:
|
||||
category: types
|
||||
name: InputFile
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
2
.butcher/types/InputTextMessageContent/default.yml
Normal file
2
.butcher/types/InputTextMessageContent/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
disable_web_page_preview: disable_web_page_preview
|
||||
parse_mode: parse_mode
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
disable_web_page_preview:
|
||||
value: UNSET_DISABLE_WEB_PAGE_PREVIEW
|
||||
4
.butcher/types/LinkPreviewOptions/default.yml
Normal file
4
.butcher/types/LinkPreviewOptions/default.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
is_disabled: link_preview_is_disabled
|
||||
prefer_small_media: link_preview_prefer_small_media
|
||||
prefer_large_media: link_preview_prefer_large_media
|
||||
show_above_text: link_preview_show_above_text
|
||||
2
.butcher/types/ReplyParameters/default.yml
Normal file
2
.butcher/types/ReplyParameters/default.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
quote_parse_mode: parse_mode
|
||||
allow_sending_without_reply: allow_sending_without_reply
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
annotations:
|
||||
quote_parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
Loading…
Add table
Add a link
Reference in a new issue