Botfather
(yes, that's the name of the bot that can create bots). Telegram provides great documentation and examples on how to create a bot using the Botfather
.BOT_TOKEN
CHAT_ID
BOT_TOKEN
and CHAT_ID
. Once you've found them, consider storing both as environment variables in Deepnote for security purposes. Environment variables in Deepnote are encrypted and offer a secure way to store sensitive data.BOT_TOKEN
and CHAT_ID
as environment variables, all that's needed to send messages is a simple function that sends the notification string to you via Telegram's API. Here's an example of what that could look like:View source
button first before clicking on Duplicate
in the top-right corner to start exploring on your own!