How to join my Telegram Bot to PUBLIC channel

Nima picture Nima · Mar 8, 2017 · Viewed 13.8k times · Source

My question is: how to join my telegram bot to a telegram public channel that I am not 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?

Thank you in advance :)

edit------ 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? Appreciate your time?

Answer

Mohamed Sohail picture Mohamed Sohail · Mar 15, 2017

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.