This is a simple script for sending messages to telegram from cli.
First of all you need to get telegram bot token from @BotFather. After that you can use script like:
./telegram_sender.py -m "Hello world" -t [your bot token] -d @some_channel
Don't forget add right to your bot for sending to @some_channel.