Skip to main content

anh iu tất cả các em

Project description

Một thư viện Python đơn giản để gửi tin nhắn và tệp qua Telegram Bot một cách nhanh chóng.

Cài đặt Generated bash pip install phtuankiet

Sử dụng

Bạn cần có chat_id của người nhận hoặc nhóm chat.

Generated python from phtuankiet import sendtelegram

Gửi một tin nhắn văn bản

sendtelegram(chat_id="ID_CHAT_CUA_BAN", msg="Chào bạn, đây là tin nhắn tự động!")

Gửi một tệp tin

Tạo một tệp ví dụ

with open("test.txt", "w") as f: f.write("Đây là nội dung của tệp.")

sendtelegram(chat_id="ID_CHAT_CUA_BAN", file_path="test.txt")

Gửi một tệp tin kèm theo chú thích

sendtelegram(chat_id="ID_CHAT_CUA_BAN", msg="Đây là tệp báo cáo nhé!", file_path="test.txt")

sendtelegram(

chat_id="ID_CHAT_CUA_BAN",

msg="Gửi bằng token khác",

token="TOKEN_BOT_KHAC_CUA_BAN"

)

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

phtuankiet-0.0.1.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

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

phtuankiet-0.0.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file phtuankiet-0.0.1.tar.gz.

File metadata

  • Download URL: phtuankiet-0.0.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for phtuankiet-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8058eed15a23eaf1528d3d57d2593ef2ba8e6ab69e53f3279351a58cd71749bf
MD5 350441963056f600b7df19f393e74967
BLAKE2b-256 16a6c722bc69b66aa368d56308270d2eca112792ae60839dc6a1038cc3498575

See more details on using hashes here.

File details

Details for the file phtuankiet-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: phtuankiet-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for phtuankiet-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39216bfd0d785f0bc44e9396a2865d9f34b667ee9c38ee34c65a01b22f3f2b53
MD5 31fc7d141fd8693df91e793a132699a5
BLAKE2b-256 a8a1387fe59a03285003265773b573d9da2e6772c049026ccc43d87b7eac0bd2

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