mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
i-AIOG-12: Add default parse mode
This commit is contained in:
parent
cc650047df
commit
b42ea0f2ce
1 changed files with 2 additions and 0 deletions
|
|
@ -918,6 +918,8 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin):
|
|||
"""
|
||||
options = prepare_arg(options)
|
||||
payload = generate_payload(**locals())
|
||||
if self.parse_mode:
|
||||
payload.setdefault('explanation_parse_mode', self.parse_mode)
|
||||
|
||||
result = await self.request(api.Methods.SEND_POLL, payload)
|
||||
return types.Message(**result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue