Exemplo n.º 1
0
 def __parse_super_chat(self, command):
     data = command['data']
     return self._on_super_chat(
         blivedm.SuperChatMessage(data['price'], data['message'], None,
                                  data['start_time'], None, None,
                                  data['id'], None, None, data['uid'],
                                  data['user_info']['uname'],
                                  data['user_info']['face'], None, None,
                                  None, None, None, None, None))
Exemplo n.º 2
0
 def __super_chat_message_callback(self, client: LiveClient, command: dict):
     data = command['data']
     message = blivedm.SuperChatMessage(
         price=data['price'],
         message=data['message'],
         start_time=data['start_time'],
         id_=data['id'],
         uid=data['uid'],
         uname=data['user_info']['uname'],
         face=data['user_info']['face'],
     )
     return self._on_super_chat(client, message)