Skip to main content

tgclient

Telegram Api Client

Getting Started

Install

pip install tgclient

or

git clone https://github.com/negative23/tgclient.git
cd tgclient 

python setup.py install

getupdates example

from tgclient import *

bot = TelegramBot("245100736:AAGpgrDLt1YNwsQxxxxxxxxxxxxxxxxxxxx")


@bot.message("text")
def text(message):
    print(message)
    # {'message_id': 6577, 'from': {'id': 68747297, ... ...

bot.run()

command handler

from tgclient import *

bot = TelegramBot("245100736:AAGpgrDLt1YNwsQxxxxxxxxxxxxxxxxxxxx")


@bot.command(r'^(/echo) (.*)')
def text(message, args):
    # args[2] two argument of command
    bot.sendMessage(message['chat']['id'], args[1])

bot.run()

Metadata

Release files for tgclient 1.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tgclient 1.5.3
File Size Uploaded Provenance Actions
tgclient-1.5.3.tar.gz 6.3 kB Without provenance Details for tgclient-1.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tgclient 1.5.3
File Interpreter ABI Platform Actions
tgclient-1.5.3-py3-none-any.whl Python 3 none any Details for tgclient-1.5.3-py3-none-any.whl

Total release size: 19.5 kB

Release files / tgclient-1.5.3.tar.gz

Download URL tgclient-1.5.3.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4211cc6961f0d6dad693c44d65943949ef9c75cd8daaf125f561c9a251862288
BLAKE2b-256 checksum
How to use checksums
a23c86e95ced403790bdfa89603d5932a5083318d764912def23d85b4db85e14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release files / tgclient-1.5.3-py3-none-any.whl

Download URL tgclient-1.5.3-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17f9f1c4a2a1086d270e7cad69d9ca3ad2cfa640b899907044c330e06003333d
BLAKE2b-256 checksum
How to use checksums
9d779bb44ddeaf70ec257923e4d57d74c0b938e90d5d9be19042a943d4b8a9f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Security for tgclient 1.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page