How to obtain the chat_id of a private Telegram channel

I found the way to write in private channels. You should convert it to public with some @channelName Send a message to this channel through the Bot API: As the response, you will get information with chat_id of your channel. { “ok” : true, “result” : { “chat” : { **”id” : -1001005582487,** “title” … Read more