Q&A

Send desktop app

Pre condition, Condition to reproduce

Hi everyone, I have been going through the documentation and can see that I can setup a bot to send a message to a user. I am an experienced programmer on desktop stuff but this is a little bit beyond me. Firstly is it possible to connect to the a line desktop API and communicate through the line application? My goal is to automate a process that sends a daily unique message to a bunch of other users that are friends. If not then can someone enlighten me on the console example code to send a message to a specific user. I tossed the example into a bat file, made some modifications, and then ran it from dos prompt which through out a 401 non Auth message. Is that how the console example was meant to be run.

Issue/ Error Message details

Accompanying respective source code

Resolution Tried

Reference information (Version / Platform/ environment)

  • 0
  • 2
  • 163
  • twitter facebook

is it possible to connect to the a line desktop API and communicate through the line application?

No, you can't. There is no desktop API. You can only use messaging api and talk with other users using your bot. To send message to a spesific user, the user and your bot should be friend relationship. For more detail, see https://developers.line.biz/en/reference/messaging-api/#send-push-message.

Also, you should probably get channel access token via LINE Developer console site. It's neccessary to send message and pass auth. Plz take a look at the sites.

  • 0

Thank you very mush ksyt. Looks like I will have to investigate bots more

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