Skip to main content

sending notifications to telegram

Project description

To install the package, use poetry:

poetry install telegram_message

Сreate file ".env": " TELEGRAM_BOT_TOKEN= TELEGRAM_CHAT_ID= TELEGRAM_START_HOUR=11 TELEGRAM_END_HOUR=18 "

Example of use: " from telegram_message import send import os

bot_token = os.getenv("TELEGRAM_BOT_TOKEN") chat_id = os.getenv("TELEGRAM_CHAT_ID")

message = "HELLO"

send(bot_token, chat_id, message) "

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telegram_message-0.2.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telegram_message-0.2.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file telegram_message-0.2.0.tar.gz.

File metadata

  • Download URL: telegram_message-0.2.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.11

File hashes

Hashes for telegram_message-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2381ddbc6784ccf8ddcbc3d625a85e7f00af84bc01e9a003b19230b3d8dbacb7
MD5 eecb84b77a678e3118fcb09ff4609c52
BLAKE2b-256 119b9e3f8465f87476170f344f98dc56d970b507325c0e370548f8c4a95b9d3c

See more details on using hashes here.

File details

Details for the file telegram_message-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for telegram_message-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4f65fdf1bfb0cd794256b00f7da4c12e4147f2ca77f5b7485cb2a8f3240d903
MD5 807a0b6c885d281c60f5f0a553699b70
BLAKE2b-256 e6769efcac4e67485f3b9910db864700c5be0333674da672b4a4d905a2d63bcb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page