想在Line Notify通知增加Emoji符號,但測試Emoji符號一直傳送失敗,還請高手們指點。
def lineMessage(self, msg):
p1 = {"message": msg, "stickerPackageId": 2, "stickerId": 520}
p2 = {"message":{
"type": "text",
"text": "$ LINE emoji $",
"emojis": [
{
"index": 0,
"productId": "5ac1bfd5040ab15980c9b435",
"emojiId": "001"
}
]
}}
r1 = requests.post(self.url, headers = self.headers, params = p1)
r2 = requests.post(self.url, headers = self.headers, params = p2)
return r1.status_code+ r2.status_code