-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions for setup and Line API #2
Comments
virtualenv . -p /usr/bin/python3 After setting up a provider and a channel, I used below to create a short-lived access token (can you do a long lived one?) But i'm unsure what value ROOM = should be, and I get the below error linebot.exceptions.LineBotApiError: LineBotApiError: status_code=403, request_id=7e6fef71-bc31-4ba7-8fbc-a5a59dbec1d7, error_response={"details": [], "message": "Forbidden"}, headers={'Server': 'openresty', 'Content-Type': 'application/json', 'x-line-request-id': '7e6fef71-bc31-4ba7-8fbc-a5a59dbec1d7', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'x-frame-options': 'DENY', 'Expires': 'Sun, 11 Apr 2021 03:32:06 GMT', 'Cache-Control': 'max-age=0, no-cache, no-store', 'Pragma': 'no-cache', 'Date': 'Sun, 11 Apr 2021 03:32:06 GMT', 'Connection': 'close'} |
Ok, creating a messaging api I get the following errror linebot.exceptions.LineBotApiError: LineBotApiError: status_code=400, request_id=a6a4517b-8f6d-47b4-ae62-4553e472b39c, error_response={"details": [], "message": "The property, 'to', in the request body is invalid (line: -, column: -)"}, headers={'Server': 'openresty', 'Content-Type': 'application/json', 'x-line-request-id': 'a6a4517b-8f6d-47b4-ae62-4553e472b39c', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'x-frame-options': 'DENY', 'Content-Length': '85', 'Expires': 'Sun, 11 Apr 2021 03:59:26 GMT', 'Cache-Control': 'max-age=0, no-cache, no-store', 'Pragma': 'no-cache', 'Date': 'Sun, 11 Apr 2021 03:59:26 GMT', 'Connection': 'close'} |
OK, I will put the documents as soon as possible. |
Ok, ROOM value should be populated with the reply string when adding the bot to group that has not been entered in the config.ini yet. |
Ok, now if I send a message from Matrix, it spams with a history of all messages from Matrix |
Also i think matrix room must not be encrypted? |
Fyi bridge server and port must be exposed to the web for webhook. Also url appears to need /callback appended in line API settings |
README has been updated. |
This is the bug I was finding, but I need someone who knows Matrix API to resolve the problem. |
Under the wiki, please mention the user/pass for Matrix should not be the user you will use to chat. |
Also worth mentioning the Line chat bot must be added to the line room. |
OK, I will update them asap. |
Are you able to update install/running instructions for javascript ? how to convert config.ini to js config .env? just found .env.sample |
|
Above is a nice simple way to get the token, perhaps add to the documentation? |
That's cool!
|
starting to update the wiki |
Are you able to post a README on how to set up a personal LINE API key and this bridge?
The text was updated successfully, but these errors were encountered: