mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add new types in message.send_copy method (#511)
This commit is contained in:
parent
5b1bed7942
commit
d9de799479
1 changed files with 8 additions and 0 deletions
|
|
@ -2931,6 +2931,14 @@ class Message(base.TelegramObject):
|
|||
return await self.bot.send_poll(
|
||||
question=self.poll.question,
|
||||
options=[option.text for option in self.poll.options],
|
||||
is_anonymous=self.poll.is_anonymous,
|
||||
allows_multiple_answers=self.poll.allows_multiple_answers
|
||||
**kwargs,
|
||||
)
|
||||
elif self.dice:
|
||||
kwargs.pop("parse_mode")
|
||||
return await self.bot.send_dice(
|
||||
emoji=self.dice.emoji,
|
||||
**kwargs,
|
||||
)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue