Answer the question
In order to leave comments, you need to log in
Is it possible to create a bot that will send messages from telegram channels to users?
Is it possible to create a bot that will send messages from certain channels in the telegram, either to a separate channel, or directly to users who previously had a dialogue with the bot (I mean, to those people who sent / start to the bot)
If it is possible to create such a bot , then where can I find detailed documentation for creating it or a tutorial?
Answer the question
In order to leave comments, you need to log in
Yes, it's possible.
There are a lot of instructions on the Internet, start with this: https://habr.com/ru/post/262247/ .
Before you start, you need to decide on a number of questions:
- What messages do you want to send? From Cart to Cart? This is one thing ... From Cart to Vkontakte or vice versa - you have to study the Vkontakte API.
- You should pay attention to privacy, not all bots in telegram groups can read messages (firstly, @BotFather is configured, and secondly, in the group itself where the bot was added by the group admins).
- Do you want to forward absolutely all messages, or somehow filter them? Perhaps a simple substring search function in a string will suffice, or maybe you need a regular expression regexp? In any case, it’s worth devoting a day or two to studying regular expressions ...
From what you described, I would make a simple JavaScript bot with free hosting in Google Sheets ( https://script.google.com/). There you can "publish the script", and feed the link to the telegram server as a WebHook. Then the script will process each incoming message. With a small load, free limits will suffice, + no need to bother with ILV, SSL and hosting settings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question