Send a message to this channel through the Bot API:
https://api.telegram.org/bot111:222/sendMessage?chat_id=@channelName&text=123
replace your token key and channel name
As the response, you will get information with chat_id of your channel.
"ok": true,
"result": {
"message_id": 2,
"sender_chat": {
"id": -3543543543543,
"title": "Fun Fact",
"username": "funfact",
"type": "channel"
},
"chat": {
"id": -3543543543543,
"title": "Fun Fact",
"username": "funfact",
"type": "channel"
},
"date": 1712142619,
"text": "123"
}
}
https://api.telegram.org/bot111:222/sendMessage?chat_id=-3543543543543&text=123