Help us understand the problem. What is going on with this article?

LINE Botは人が多いと誰が喋ってるのか認識できない

More than 1 year has passed since last update.

LINE Messaging API の仕様

https://devdocs.line.me/ja/?ruby#webhooks

だれかが喋ったときにBotが受け取るデータの例。

{
  "events": [
    {
      "replyToken": "nHuyWiB7yP5Zw52FIkcQobQuGDXCTA",
      "type": "message",
      "timestamp": 1462629479859,
      "source": {
        "type": "user",
        "userId": "U206d25c2ea6bd87c17655609a1c37cb8"
      },
      "message": {
        "id": "325708",
        "type": "text",
        "text": "Hello, world"
      }
    }
  ]
}

ユーザとBotが1対1のとき

image

source.type="user"で来て、誰が喋ったのかはuserIdでわかる。

グループ内での会話のとき

image

source.type="group"で来て、どこのグループなのかはgroupIdでわかる。

しかし、userIdの情報が無いので誰が喋ってるのかわからない。

3人以上の会話=ルームのとき

image

source.type="room"で来て、どこのルームなのかはroomIdでわかる。

しかし、userIdの情報が無いので誰が喋ってるのかわからない。

盛り上げたいんだかやる気ないのかよくわからない。

どうしてこうなったてかんじ。
あと、https必須のWebHookの敷居の高さのせいで足切りされている開発者がたくさんいると思います。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away