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
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
File details
Details for the file telepybot-0.1.12.tar.gz
.
File metadata
- Download URL: telepybot-0.1.12.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 791db2c2b2355ae6e19a515abd4794b07bedcc8437cc8c440c809137ab93b8ad |
|
MD5 | 1b3cd5cd8d63c3fd097446d600cdb758 |
|
BLAKE2b-256 | a3ae9eb5609331de273d9f01238fa8ac719c474736987bcb0d759f05f0856184 |
File details
Details for the file telepybot-0.1.12-py3-none-any.whl
.
File metadata
- Download URL: telepybot-0.1.12-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf33f85f38ae3f43a69c05e93843d10a94f226b052d6f839fa2f9d93e1c932d5 |
|
MD5 | 2294f49526b4e46db1e5abc494d61e9c |
|
BLAKE2b-256 | d736cf3d827c8c71ed6ac8f8c8894e24c0d47549ef4e2558bc1b6478ca3aa01a |