Add utility properties to CallMessage to query information.

This commit is contained in:
Rapptz
2016-07-15 23:42:53 -04:00
parent 1c8ab25917
commit bd39c3ef45
3 changed files with 39 additions and 11 deletions

View File

@ -601,7 +601,7 @@ class ConnectionState:
def parse_call_create(self, data):
message = self._get_message(data.get('message_id'))
if message is not None:
call = GroupCall(message=message, **data)
call = GroupCall(call=message, **data)
self._calls[data['channel_id']] = call
self.dispatch('call', call)