a Sample Python code to send telegram messages
install python-telegram-bot package using
pip install python-telegram-bot
since this uses asyncio
python 3.7 or higher is needed.
You can use chat_id.py to get your chat ID. make sure to send a message to the bot beforehand otherwise ID will not be genarated. Refer this Article on how to create a Chat bot in Telegram.
Change Token and chat ID in the script telegram_sender.py.