def easteregg(self, conversation_id, easteregg): """Send an easteregg to a conversation. easteregg may not be empty. Raises hangups.NetworkError if the request fails. """ request = hangouts_pb2.EasterEggRequest( request_header=self._get_request_header_pb(), conversation_id=hangouts_pb2.ConversationId(id=conversation_id), easter_egg=hangouts_pb2.EasterEgg(message=easteregg), ) response = hangouts_pb2.EasterEggResponse() yield from self._pb_request('conversations/easteregg', request, response) return response
def easter_egg(self, easter_egg_request): """Send an easter egg event to a conversation.""" response = hangouts_pb2.EasterEggResponse() yield from self._pb_request('conversations/easteregg', easter_egg_request, response) return response