Skip to main content

A Python library for sending messages via the xd-org.site Telegram API

Project description

xdTelegramMsgAPI

A Python library for sending messages or images to Telegram users via the xd-org.site API.

Installation

pip install xdTelegramMsgAPI

Usage

from xdTelegramMsgAPI import xdSendMsg

# Send a simple message
response = xdSendMsg(
    to="123456",
    key="xd_team",
    msg="Hello, User!"
)
print(response)

# Send a message with an image and inline buttons
response = xdSendMsg(
    to="123456",
    key="xd_team",
    msg="Check this out!",
    img="https://example.com/image.jpg",
    inlinetext1="Open Website",
    inlinelink1="https://example.com",
    inlinetext2="More Info",
    inlinelink2="https://example2.com"
)
print(response)

Requirements

  • Python 3.6+
  • requests library

License

MIT

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

xdtelegrammsgapi-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

xdtelegrammsgapi-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file xdtelegrammsgapi-0.1.0.tar.gz.

File metadata

  • Download URL: xdtelegrammsgapi-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for xdtelegrammsgapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27fef4d91e35ee968303f8af8c084d81ba39c78816f4282eb7d3f791583e44b7
MD5 98c89434c763f8796364e1a0fa18d345
BLAKE2b-256 8c048dcfca8445442603a353a1ed2b6d4ab706cbcbe90fb86b61ce2c8fe2dd74

See more details on using hashes here.

File details

Details for the file xdtelegrammsgapi-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xdtelegrammsgapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 352aced9a5cfcde16db3a270dd9074147c2b7f0b785ba0ddfd1ea1497670f2e0
MD5 2aa5460fbf9f7057b0731a5c858868e4
BLAKE2b-256 c108a6adfee1ea606d1c5074ae331f9e9a29aa073c842cf2541a5cbe6e71ead1

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