A telegram and instagram SDK with clean and beginner-friendly command decorators.
Project description
Note: This package requires pyTeleBot for Telegram features and instabot for Instagram functionality. These dependencies will be automatically installed with Mehta. Make sure to use Instagram automation responsibly to avoid account restrictions from the platform.
Installation
pip install mehta
Telegram Setup
from mehta import telegram
bot = telegram()
@bot.commands(['start'])
def welcome(message):
return {
'type': 'text',
'text': 'Hello World!'
}
bot.run("BOT_TOKEN")
Instagram Setup
from mehta import instagram
bot = instagram()
@bot.commands(['start'])
def welcome(message):
return {
'type': 'dm',
'text': 'Hello World!'
}
bot.run(username="your_username", password="your_password")
CLI
To run your python file main.py
mehta run:bot
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mehta-1.0.7.tar.gz.
File metadata
- Download URL: mehta-1.0.7.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94cb8041b4b7a42bc6cf7d5234ff41cf9d3803a387c228ab85bc2ad625753566
|
|
| MD5 |
7ab653609b462fbc49979d7ce55340fe
|
|
| BLAKE2b-256 |
70da47c10ae873ea82524cf462c5f39ecbd18b8c44d6de3c93079ccf29ae2f2f
|
File details
Details for the file mehta-1.0.7-py3-none-any.whl.
File metadata
- Download URL: mehta-1.0.7-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4aa4d8302c204d8d8456e5f72cc38ec0601938247a748099e9a4472b3df9cb75
|
|
| MD5 |
97af5ca7c01251f417dba6507ebff8eb
|
|
| BLAKE2b-256 |
84c9555184cb7de8cfbea2a6bf4c670d6878c32f392136f31715a778e1a55b6a
|