0
0

More than 3 years have passed since last update.

LINEの絵文字・スタンプメッセージ送信メモ

Last updated at Posted at 2020-11-20

これはうまくいくけど、


                let text_length = pushText.length;
                pushText += "$"

// チャンネルに登録されている方たちに連絡
                client.broadcast([{
                    type: "text",
                    text: pushText,
                    "emojis": [
                        {
                            "index": text_length,
                            "productId": "5ac1bfd5040ab15980c9b435",
                            "emojiId": "002"
                        }
                    ]
                }]).then(data => console.log(data))

こっちのスタンプはうまくいかんのなんでやろ。指定の仕方がまちがってるのか?

                client.broadcast([{
                    type: "sticker",
                    packageId: "11537",
                    stickerId: "520027451"
                }]).then(data => console.log(data))
                .catch(e => console.log(e))

追記⇒ただのIDのコピペミス!!「520027451」の最後の1がいらなかった。見たところ、他のも全部8桁や。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0