Skip to main content

Simple telegram api

Project description

teleapi

PyPI version Python version License

Easy telegram API
See official telegram api documentation

Install

pip install teleapi

Usage

from teleapi import TelegramApi

BOT_TOKEN = 'TOKEN'
CHAT_ID = 'example_chat_id'
PROXY = 'soks5h://USERNAME:PASSWORD@IP:PORT'

telegram_api = TelegramApi(BOT_TOKEN, proxy=PROXY)
telegram_api.send_message(CHAT_ID, 'Hello world!')

More examples

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

teleapi-0.1.7.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

teleapi-0.1.7-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file teleapi-0.1.7.tar.gz.

File metadata

  • Download URL: teleapi-0.1.7.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for teleapi-0.1.7.tar.gz
Algorithm Hash digest
SHA256 144387c7b38b5d6cddaa5f928fcf48c0ef074b95365b6419bcef610544c02ccc
MD5 ee85de870bda34d3fc46ee7a54615358
BLAKE2b-256 b94fe9d9800ed52cf07d1ef4ce96c05de57637428690634ecc356071329b4526

See more details on using hashes here.

File details

Details for the file teleapi-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: teleapi-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for teleapi-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 950771b2739c8e540f97a27837d339707277b5c4a0e6e23530cec5d42e49b4ab
MD5 0dc9fa0ca740c57ea822f68f19e0a09c
BLAKE2b-256 200a35b73ef2d676601390138e32c09cff133b02d845d23c4ae38b28ed6045a1

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