mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge pull request #293 from aiogram/animation_default_parse_mode
Added default parse mode for send_animation method
This commit is contained in:
commit
f26b3a66e6
1 changed files with 2 additions and 0 deletions
|
|
@ -523,6 +523,8 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin):
|
|||
"""
|
||||
reply_markup = prepare_arg(reply_markup)
|
||||
payload = generate_payload(**locals(), exclude=["animation", "thumb"])
|
||||
if self.parse_mode:
|
||||
payload.setdefault('parse_mode', self.parse_mode)
|
||||
|
||||
files = {}
|
||||
prepare_file(payload, files, 'animation', animation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue