Skip to main content

A Python class to help you interact with Telegram's bot api.

Project description

Telepybot

Python client for making your own Telegram bot!

It has support for webhooks and it automatically handles the setup of self-signed SSL certificates, so you can run it even on a Raspberry Pi or any other home server/laptop (find an example of this in examples/webhook_setup.py).

Install with:

pip -m install telepybot

To use it, just import the Telepybot class and pass it your bot's token:

# Sending a simple message
from telepybot import Telepybot

telepybot = Telepybot(token='YOUR_BOT_API_TOKEN')

user_id = '123456'
telepybot.sendMsg(user_id, 'This message was sent using Telepybot!')

See the examples/ directory for more examples.

Feel free to use it for your own projects and be sure to create issues if something is not working right. Pull requests and feature requests are welcome.

How to get an API Token?

You can generate one using the official instructions from Telegram, it should be fairly straightforward.

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

telepybot-0.1.11.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

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

telepybot-0.1.11-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file telepybot-0.1.11.tar.gz.

File metadata

  • Download URL: telepybot-0.1.11.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.2 Windows/10

File hashes

Hashes for telepybot-0.1.11.tar.gz
Algorithm Hash digest
SHA256 89187a2a3d7e0c7aa880867f897bc38fe71ce91be0cfffeed26d29fc9e45250a
MD5 093d6b89f3701c9bc8bbd50fb04adb81
BLAKE2b-256 6685e6399d127f913d5a4f184a9e5f3027f33126530dcfaa546e162140dd53d6

See more details on using hashes here.

File details

Details for the file telepybot-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: telepybot-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.2 Windows/10

File hashes

Hashes for telepybot-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 ff3aaf8692850d7075b90cbd674eaac257297928ffbef39a87c6b904910fcba9
MD5 fbe9a6a623635d1798f4f2e2983b2082
BLAKE2b-256 bf617e937079bb4b7dd56ce96d7ac8f2c1b8307dcfa321d8425a65bf6512f0cf

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