D
D
donjohny2018-05-03 21:04:31
Bots
donjohny, 2018-05-03 21:04:31

A bot that parses posts from the telegram channels I am a member of and reposts them to my channel. How?

It is necessary to write a bot that will monitor the updates of the channels in which I am a member (I am not an admin) and would repost (copy-paste) to my channel. Can anyone suggest where to dig?

Answer the question

In order to leave comments, you need to log in

8 answer(s)
A
Albert_Gareev, 2021-08-29
@Albert_Gareev

For this, the Telethon library is suitable, which emulates the actions of a real user. You must be subscribed to the channel you are going to copy from, and then when you receive a message from that channel your program forwards it to your channel where you can write messages. You can look at my solution to this problem: https://github.com/AlGaRitm2020/telethon_forwarding . For permanent work, I ran this program from a virtual machine with the nohup python3 main.py command. It allows the program to work 24/7

K
korolkovn, 2018-05-12
@korolkovn

This will not be a bot in the sense of the Telegram Bot API, but a bot in the classical sense of the word, that is, software that emulates a user of the service. Since telegram is open, you can take alternative clients, like telethon, for example, it will not be so difficult to implement the functionality of reading selected channels and posting any messages to your channels / chats

B
Bartiwka, 2018-05-03
@Bartiwka

First of all, no matter how strange it sounds, go to Google, understand how it works, make a couple of tutorial bots, once you understand the essence, go to court

N
Nick, 2018-05-04
@zdrzhn

No way. :)
So says Google The
bot must be in the channel, so that he was in the channel of his channel ADMIN must be added to the channel with ADMIN rights

S
Suleimanov_Ismar, 2018-05-06
@Suleimanov_Ismar

There is such a thing IFTTT, read more about it, the other day I was also looking for something similar.
Here are the links:
https://vk.com/page-64980878_50290680
https://habr.com/post/269819/
https://womenbz.ru/telegram_for_business

I
Ignat Khaylov, 2018-05-10
@ignat_one

I would also try to look towards headless browsers ( puppeteer ) and the web version of telegram.
To the topic: Yegor Malkevich's report - (-- Stealing --) Extracting data from the Internet

S
SharkLab, 2020-03-25
@SharkLab

For forwarding posts from public and private channels, groups, bots and users, @redirectsbot has proven itself well

L
legendarnyua, 2022-03-03
@legendarnyua

From Ukraine it doesn’t ship at all, is it supposed to be like that? Or what's wrong!!!?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question