mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added possibility to reply into webhook with files (#1120)
This commit is contained in:
parent
84bc0e347b
commit
58868ec627
6 changed files with 126 additions and 30 deletions
|
|
@ -33,12 +33,6 @@ class Request(BaseModel):
|
|||
class Config(BaseConfig):
|
||||
arbitrary_types_allowed = True
|
||||
|
||||
def render_webhook_request(self) -> Dict[str, Any]:
|
||||
return {
|
||||
"method": self.method,
|
||||
**{key: value for key, value in self.data.items() if value is not None},
|
||||
}
|
||||
|
||||
|
||||
class Response(GenericModel, Generic[TelegramType]):
|
||||
ok: bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue