skip to Main Content

I’m using https://github.com/yagop/node-telegram-bot-api and I’m able to send message to user and to my channels. I’d like to improve my bot, I want to manage the private messages that my bot receives.

At the moment when the BOT receive a message, I can save on database from my node application, but if I want to manage all messages, I need to build a backoffice.

Is it possible to read the messages from Telegram and impersonate the BOT and start a normal conversation?

2

Answers


  1. Using Telegram bot, Telegram does not provide any function to retrieve old messages. BOT API does not have such feature.

    What you need is to use TDlib – The Telegram client API. It supports both bot and normal Telegram account. And it has many features not available in BOT API.

    https://github.com/tdlib/td

    Login or Signup to reply.
  2. There is an example of creating a Userbot on this github page: UserBot

    There is also a library for managing a telegram account, which is used to create cross-platform telegram clients: TDLib

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search