Add new types in message.send_copy method

This commit is contained in:
Fenicu 2021-02-21 12:32:47 +03:00
parent 9de257efec
commit 3104498c00

View file

@ -2891,6 +2891,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: