Q&A

How can I get line groupId in python messaging api.

I tried to make a simple bot that return line group Id to tag people on the group chat, but I have no idea where is group id and how can i get the group id.

  • 0
  • 1
  • 342
  • twitter facebook

You can get the group id from webhook. https://developers.line.biz/en/reference/messaging-api/#source-group When the message from a group comes to your sever, you can access by event.source.group_id in python sdk.

  • 1
本当によろしいですか? question.vm