How to join my Telegram Bot to PUBLIC channel
Asked Answered
T

4

22

My question is: how to join my telegram bot to a telegram public channel that I am not an administrator of it, and without asking the channel's admin to add my bot to the channel?

Maybe, the chatId of channel or thru link of channel?

I have heard that some people claim to do this join their bot to channels, and scrape data. So if Telegram does not allow it, how can they do it? can you think of any work around?

Thank you in advance :)

Template answered 8/3, 2017 at 14:44 Comment(0)
P
12

Till today, only the Channel Creator can add a bot (as Administrator or Member) to the Channel, whether public or private. Even the other Channel Administrators cannot add a normal member leave alone adding a bot, rather they can only post into the channel. As far as joining the bot via the invite link, there is yet no such method in Bot API to do so. All such claims of adding the bot to a channel by non Creator are false.

Phosphaturia answered 9/3, 2017 at 13:3 Comment(2)
thank you for your response, I have editted my question please take a look at it and give me your take. I m grateful.Template
Updated the answerPhosphaturia
P
15

Answer to your edited question.

It was possible to add a bot to a group/channel with just an invite link. This was achieved by allowing a bot to access the mtproto methods like messages.importChatInvite for private links and channels.joinChannel. However telegram patched this. However, you can still do this with normal user accounts! Since you are using python you can give this a shot. I can confirm the methods still work on Madeline Proto.

Pigeonwing answered 15/3, 2017 at 7:41 Comment(2)
Have you finished the Node ilbrary for this?Atoll
Also interested in the NodeJS libraryCongratulation
P
12

Till today, only the Channel Creator can add a bot (as Administrator or Member) to the Channel, whether public or private. Even the other Channel Administrators cannot add a normal member leave alone adding a bot, rather they can only post into the channel. As far as joining the bot via the invite link, there is yet no such method in Bot API to do so. All such claims of adding the bot to a channel by non Creator are false.

Phosphaturia answered 9/3, 2017 at 13:3 Comment(2)
thank you for your response, I have editted my question please take a look at it and give me your take. I m grateful.Template
Updated the answerPhosphaturia
B
7

Another way of "scraping the data" from several channels would be to listen to these channels with a Junction Bot aka Channels, Multi Feed Edge Bot, or alike. You just need to go to the channel info and share the link of the desired channel with the Junction Bot to automate the process of receiving new messages from the(se) channel(s). There are also other quite advanced ways described in their FAQ.

Multi Feed Edge Bot also seems to work O'kay, however, you need to follow these steps to add the redirection:

/add @TelespaceNews https://t.me/joinchat/AAAAAFIaTHjZp8ltykgwEQ
Byelection answered 17/7, 2019 at 16:58 Comment(1)
junction bot looks promisingRancor
R
4

You can only add bots to channels you are an admin in them and bots can only be added as admins. for this go to Manager Channel, click on Administrators / Add Administrator then search for the bot you want to add to your channel.

Redemptioner answered 8/1, 2023 at 14:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.