2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LINE botのリッチメニューの初期表示を設定したい

Last updated at Posted at 2019-04-24

LINE botのリッチメニューの初期表示

LINE@ では無くAPIで作成したリッチメニューをデフォルトで表示したりしなかったりするには

リッチメニュー作成時のオプションのselectedtrueorfalseで設定できます。

LINE developer using-rich-menus
↑元の例は上記リンクより

curl -v -X POST https://api.line.me/v2/bot/richmenu \
  -H 'Authorization: Bearer {channel access token}' \
  -H 'Content-Type:application/json' \
  -d \
  '{
    "size":{
        "width":2500,
        "height":1686
    },
    "selected":false, // true(初期表示), false(初期非表示)
    "name":"Controller",
    "chatBarText":"Controller",
    "areas":[
        {
          "bounds":{
              "x":551,
              "y":325,
              "width":321,
              "height":321
          },
// .....etc

参考資料

LINE Messaging APIからリッチメニュー画像サイズを変更する

2
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?