Add new types in message.send_copy method (#511)

This commit is contained in:
Fenicu 2021-03-14 19:11:48 +03:00 committed by GitHub
parent 5b1bed7942
commit d9de799479
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: