D
D
Dmitriy33372021-05-03 16:39:11
API
Dmitriy3337, 2021-05-03 16:39:11

How to forward a message from someone else's channel to a telegram bot?

Hello! Please tell me how can I do so that my bot can send me new messages from someone else's telegram channel? The logic should be like this, I give the bot a link (dog) to the channel, and it sends me new messages from this channel. At the moment I'm trying to implement this using telegraf js, but nothing works.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MinTnt, 2021-05-03
@Dmitriy3337

Normal (standard) bots created through BotFather cannot view the "Chat History", and also have a couple of other restrictions. By the type that they cannot "view" reply on message in chats. So he can't read other chat messages he just added to.
Usually, for such purposes, libraries are used that use the account of an ordinary user, like a bot

B
bodrych, 2021-05-03
@bodrych

Will not work. The bot in this case must be a channel administrator.
If you really want to, then you can try using a separate account for this and something like https://github.com/airgram/airgram . But it's a bit of a perversion, in my opinion :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question