Simple Class to easily make calls to the Telegram bot API
Project description
lazybot
A simple class that can call arbitrary methods and make a request to Telegrams bot api.
But why ?
While writing my userbot I wanted a easy way to make calls to the bot api without needing a full blown lib with handlers etc..
Where are the docs ?
Use the Telegram Docs and the following example as base.
import lazybot
bot = lazybot.Bot('TOKEN')
# you can use snake case
bot.send_message(chat_id=123456, text='Text')
# or camelCase
bot.sendMessage(chat_id=123456, text='Text')
Installation
pip install lazybot
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
lazybot-0.1.0.tar.gz
(1.4 kB
view details)
Built Distribution
File details
Details for the file lazybot-0.1.0.tar.gz
.
File metadata
- Download URL: lazybot-0.1.0.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0b3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
345b1eec4832b1167fcc24f1251bcc286473bba4ba779b50af635a5a41d69d47
|
|
MD5 |
50e7618d31389f30ab50f3b3b2f16cf2
|
|
BLAKE2b-256 |
cc5826a9119b96a8a26737464da5cacbda93709f51eac601e9aaf061602a94b7
|
File details
Details for the file lazybot-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lazybot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0b3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e67774de82f7659da880a03b9e08e1e026e137d9c66d656a4ffe5fa6007025ed
|
|
MD5 |
70bcd0cd0420ce7913513b3d926da588
|
|
BLAKE2b-256 |
8b0e7c8bac0697b8d2b6045a4ef3d124d23d00fd8ceedd1d2ac83c99eb80b0b2
|