33

Can a telegram bot read/access a telegram channel that neither I or the bot is administrator of?

I know that up to last November it was not possible, but I have heard some people have done this, but so far I am not able to do it.

I would really appreciate your input and knowledge.

P.s. any workaround would be great.

Rafael Almeida
  • 5,142
  • 2
  • 20
  • 33
Nima
  • 969
  • 3
  • 10
  • 14

1 Answers1

34

The FAQ reads:

  1. All bots, regardless of settings, will receive:

    • All service messages.
    • All messages from private chats with users.
    • All messages from channels where they are a member.
  2. Bot admins and bots with privacy mode disabled will receive all messages except messages sent by other bots.

  3. Bots with privacy mode enabled will receive:

    • Commands explicitly meant for them (e.g., /command@this_bot).
    • General commands from users (e.g. /start) if the bot was the last bot to send a message to the group.
    • Messages sent via this bot.
    • Replies to any messages implicitly or explicitly meant for this bot.

So, if your bot is a member of the channel it will receive all messages except those sent by other bots.

lufte
  • 1,283
  • 1
  • 11
  • 21
  • 4
    Thanks lufte for quick response, but can you also tell me, how my bot can join PUBLIC channels? is there a way thru link of channel, username? thanks again – Nima Mar 08 '17 at 13:39
  • 5
    That's a different question. Maybe you can get some clues from here http://stackoverflow.com/questions/33126743/how-do-i-join-my-bot-to-the-channel. – lufte Mar 08 '17 at 13:44
  • 1
    It's not posible yet, you can only recieve updates of messages with bot, if you want to get past message you need the core API – John Balvin Arias Aug 05 '19 at 16:38
  • Please, show us simple code snippet as well – Scott Mar 01 '23 at 03:57