Created
September 25, 2022 14:21
-
-
Save under0tech/1160af253cd7b8a148d8a1baf506cc94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Send message to Telegram channel | |
def send_message(message): | |
response = rq.post( | |
f'{TELEGRAM_URL}/{TELEGRAM_BOT_ID}/sendMessage?chat_id={TELEGRAM_CHAT_ID}&parse_mode=Markdown&text={message}') | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment