0

Previously to find my private channel id I was:

Log into Telegram via web: https://web.telegram.org Find your channel and copy the URL. You should have something like this: https://web.telegram.org/#/im?p=cNUMBERnumber The numbers between "c" and "" are the ID of your private channel.

Now tell your bot to send the messages to chat_id=-100NUMBER

Seems it no longer work, chat not found using this method

Can anyone confirm if something changed?

Data_journey
  • 45
  • 1
  • 6

3 Answers3

1

This method still works, you need to use the first NUMBER between c and _ in the https://web.telegram.org/#/im?p=cNUMBER_number string. I you get some chat_id not found error whan you try to send the message, please make sure that your bot has been added to your channel as administrator.

Sebastien
  • 485
  • 8
  • 13
1

Your method is still good, and you can also use this method

If you need more detailed explanation, read this page

Alihossein shahabi
  • 4,034
  • 2
  • 33
  • 53
0

Just forward a message of your private channel to a Telegram Bot, and refer to Message.forward_from_chat object. If you need a quick solution, you may try to use a bot like @JsonDumpBot or @getidsbot.

MarcoBuster
  • 1,145
  • 1
  • 13
  • 21