From 3d6b756e9f58183a45cd72bd5896b25df0d6f906 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 14 May 2022 17:20:20 +0300 Subject: [PATCH] Added default value for force_reply --- aiogram/types/force_reply.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aiogram/types/force_reply.py b/aiogram/types/force_reply.py index b69ad94c..bd8e8900 100644 --- a/aiogram/types/force_reply.py +++ b/aiogram/types/force_reply.py @@ -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"""