Skip to main content

A Python library to send messages and files via Eitaa API

Project description

PyRubikaBotAPI

یک کتابخانه برای ساخت ربات‌های روبیکا با پایتون

نصب

pip install PyRubikaBotAPI

مثال ساده

from rubibot import RubiBot

bot = RubiBot("YOUR_TOKEN")

@bot.message_handler(commands=["start"])
def start(message):
    bot.send_message(message.chat_id, "سلام! خوش آمدید!")

bot.polling()

مثال پیشرفته تر

@bot.message_handler(content_types=['file'])
def handle(msg):
    file_id = msg.file.id
    file_url = bot.get_file(file_id)
    file = bot.download_file(file_url)
    with open('file.format', 'wb') as f
        f.write(file)
    # استفاده از فایل ارسالی

مستندات:

Rubika: https://rubika.ir/pyrubikabotapi GitHub: https://github.com/alireza-sadeghian/PyRubikaBotAPI

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

pyrubikabotapi-0.0.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

pyrubikabotapi-0.0.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file pyrubikabotapi-0.0.1.tar.gz.

File metadata

  • Download URL: pyrubikabotapi-0.0.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for pyrubikabotapi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 86ecad9f9b5b51481f8482dd9036bfe649f30b19ae505676c8535f45c08a0dc5
MD5 e83c8544d20d8ecdf232d72cda723b2d
BLAKE2b-256 3676e87d1515ff35158332f1e7388c7c05de16a24ac183cf19659ce62eeb36c9

See more details on using hashes here.

File details

Details for the file pyrubikabotapi-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyrubikabotapi-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for pyrubikabotapi-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c1664026b09b204dd36965f60a0c77f019f263f042951b70ab82bcb781df6f2
MD5 f907a88baf362634fd365f052b26ef4d
BLAKE2b-256 f75218cbaf37bdf1109a0d6a00d1a46ed5df94519409316b42dd065c24ee0c2e

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