You can create a telegram bot and add it to your channel as an administrator. Then use @yourchannel as chat_id in your telegram to send messages to your channel. As an example in php:
<?php $botToken = "yourbottoken"; $chat_id = "@yourchannel"; $message = "your message"; $bot_url = "https://api.telegram.org/bot$botToken/"; $url = $bot_url."sendMessage?chat_id=".$chat_id."&text=".urlencode($message); file_get_contents($url); ?>
Saeid tahmuresi
source share