mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added default value for force_reply
This commit is contained in:
parent
dab4e26f1c
commit
3d6b756e9f
1 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,8 @@ from __future__ import annotations
|
|||
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import Field
|
||||
|
||||
from .base import MutableTelegramObject
|
||||
|
||||
|
||||
|
|
@ -19,7 +21,7 @@ class ForceReply(MutableTelegramObject):
|
|||
Source: https://core.telegram.org/bots/api#forcereply
|
||||
"""
|
||||
|
||||
force_reply: bool
|
||||
force_reply: bool = Field(True, const=True)
|
||||
"""Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'"""
|
||||
input_field_placeholder: Optional[str] = None
|
||||
"""*Optional*. The placeholder to be shown in the input field when the reply is active; 1-64 characters"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue