mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
More tests for defaults
This commit is contained in:
parent
ee71117807
commit
bc08d90ce5
3 changed files with 69 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ class Bot:
|
|||
):
|
||||
warnings.warn(
|
||||
"Passing `parse_mode`, `disable_web_page_preview` or `protect_content` "
|
||||
"to Bot initializer is deprecated. This arguments will be removed in 3.5.0 version\n"
|
||||
"to Bot initializer is deprecated. This arguments will be removed in 3.7.0 version\n"
|
||||
"Use `default=DefaultBotProperties(...)` instead.",
|
||||
category=DeprecationWarning,
|
||||
stacklevel=2,
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ class DefaultBotProperties:
|
|||
"""Protects content from copying."""
|
||||
allow_sending_without_reply: Optional[bool] = None
|
||||
"""Allows to send messages without reply."""
|
||||
|
||||
link_preview: Optional[LinkPreviewOptions] = None
|
||||
"""Link preview settings."""
|
||||
link_preview_is_disabled: Optional[bool] = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue