How to receive my own telegram messages in node.js without bot

前端 未结 3 439
清歌不尽
清歌不尽 2021-01-31 05:51

I would like to have a very simple client in nodejs (an example) that can receive messages from my contacts in telegram. I just searched in internet but I only get bot samples.

3条回答
  •  情书的邮戳
    2021-01-31 06:18

    You can use the following libraries.

    • https://github.com/zerobias/telegram-mtproto
    • https://github.com/dot-build/telegram-js

    They provide abstractions to build applications to interact with telegram. for an example on how to use telegram-js, you can use https://github.com/dot-build/telegram-js/blob/master/sample.js.

    (Thank you @gokcand for the feedback)

提交回复
热议问题