mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-14 19:48:57 +01:00
fix for sending into a channel
This commit is contained in:
parent
d3bea4c3b4
commit
89015e5ecc
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ class Message(TelegramObject):
|
|||
data = super(Message, self).to_dict()
|
||||
|
||||
# Required
|
||||
data['from'] = data.pop('from_user')
|
||||
data['from'] = data.pop('from_user', None)
|
||||
data['date'] = self._totimestamp(self.date)
|
||||
# Optionals
|
||||
if self.forward_date:
|
||||
|
|
Loading…
Add table
Reference in a new issue