https://github.com/mojurasu/lazybot
https://github.com/mojurasu/lazybot
bot-api python telegram
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mojurasu/lazybot
- Owner: mojurasu
- License: lgpl-3.0
- Created: 2018-10-24T21:41:14.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2018-10-24T22:01:04.000Z (over 6 years ago)
- Last Synced: 2024-11-09T08:08:34.163Z (7 months ago)
- Topics: bot-api, python, telegram
- Language: Python
- Size: 9.77 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://core.telegram.org/bots/api) 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`