T
T
theyuri2018-10-08 16:33:08
Node.js
theyuri, 2018-10-08 16:33:08

Handling telegram messages through Nodejs?

Good afternoon. Essence of the question: I need to write a bot that will catch all incoming messages from other users addressed to the person who has this bot and process them somehow. Is it possible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
eternalfire, 2018-10-08
@eternalfire

You can write to the bot. The bot can send messages to the user in a chat with him, after he was given the /start command.
You can track what other users will send to the bot, since requests will go to your webhook and do something accordingly ( write to the user on behalf of the bot, provided that the user to whom you are going to write has already given him the /start command)

A
Alexander Koshelev, 2018-10-08
@Xandr24

Perhaps find the module you need in npm and follow its instructions, well, you need to register the bot through botfather to get a token for further work with the bot, in general, these bots are mainly written in php, but if there is a module in npm, then you can use nodges

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question