Created
May 5, 2023 15:47
-
-
Save under0tech/fdd306033b110749ff4833e4f7d050c2 to your computer and use it in GitHub Desktop.
This file contains 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 = req.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