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+
requestslibrary
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27fef4d91e35ee968303f8af8c084d81ba39c78816f4282eb7d3f791583e44b7
|
|
| MD5 |
98c89434c763f8796364e1a0fa18d345
|
|
| BLAKE2b-256 |
8c048dcfca8445442603a353a1ed2b6d4ab706cbcbe90fb86b61ce2c8fe2dd74
|
File details
Details for the file xdtelegrammsgapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xdtelegrammsgapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
352aced9a5cfcde16db3a270dd9074147c2b7f0b785ba0ddfd1ea1497670f2e0
|
|
| MD5 |
2aa5460fbf9f7057b0731a5c858868e4
|
|
| BLAKE2b-256 |
c108a6adfee1ea606d1c5074ae331f9e9a29aa073c842cf2541a5cbe6e71ead1
|