Skip to main content

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")

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

mehta-1.0.8.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

mehta-1.0.8-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file mehta-1.0.8.tar.gz.

File metadata

  • Download URL: mehta-1.0.8.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

Hashes for mehta-1.0.8.tar.gz
Algorithm Hash digest
SHA256 5b4db5e2de50519546c9854db5438f3d3258952629c75914acbfe7fc0fa12fda
MD5 f49207a2daf9eb17747ff41625a6c9bc
BLAKE2b-256 8df05e2a37a11f249040a74fd57c4100b42ca328d0063a561ba2527e3d0c74d3

See more details on using hashes here.

File details

Details for the file mehta-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: mehta-1.0.8-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

Hashes for mehta-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9226207c537fdbb3950502ca5d5a8eec91615ccbf19098608b78fdba01df96bc
MD5 f0e8d5771ab6ae353ac4d4aaa6a21c45
BLAKE2b-256 5605facc51e65996310364ad778f98cc737fa5da5477a6aa607ebe218affd117

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