Skip to main content

Best library for amino bots

Project description

🤖 aminolightbots

powerful and convenient framework for creating bots in amino

PyPI version License: MIT Python 3.7+

📝 description

aminolightbots is a modern framework for rapid bot development on the amino platform. built on the optimized aminolightpy library, it provides developers with an intuitive api and rich toolset.

✨ key features

🚀 ease of use

  • intuitive api
  • minimal code for bot creation
  • detailed documentation

⚙️ advanced message processing

  • command and regex support
  • message filtering by various criteria
  • handling all content types (text, images, stickers, etc.)

🔄 extended capabilities

  • multithreaded message processing
  • middleware system
  • convenient dialog and command chain handling

⚡️ quick start

installation

pip install aminolightbots

simple example

from aminolightbots import bot

bot = bot(email="your_email", password="your_password")

@bot.message_handler(commands=['start'])
def start_command(message):
    message.reply("👋 hi! im bot in aminolightbots")

@bot.message_handler(regexp=r'hello|hi')
def handle_greeting(message):
    message.reply(f"hi, {message.author.nickname}! 😊")

bot.start_websocket_handling()

📚 usage examples

working with commands

@bot.message_handler(commands=['help'])
def help_command(message):
    help_text = """
    🔍 available commands:
    /start - start dialog
    /help - show help
    /info - bot information
    """
    message.reply(help_text)

user dialogs

@bot.message_handler(commands=['register'])
def start_registration(message):
    bot.send_message(message.chatId, "what's your name?")
    bot.register_next_step_handler(message, process_name)

def process_name(message):
    name = message.content
    message.reply(f"nice to meet you, {name}! 🤝")

🛠 supported events

event description
text text messages
image image messages
voice voice messages
sticker sticker messages
delete deleted messages
member_join member joins the chat
member_leave member leaves the chat
start_voice_chat voice chat started
end_voice_chat voice chat ended
start_video_chat video chat started
end_video_chat video chat ended
start_screen_room screen sharing started
end_screen_room screen sharing ended

example

@bot.message_handler(func=lambda: True, content_types=["voice"])
def handle_voice(message):
    message.reply("nice voice message!")

🤝 contributing

we welcome community contributions to the project!

  1. fork the repository
  2. create a branch for your changes
  3. make changes and create a pull request

📄 license

this project is licensed under the mit license. see the license file for details.

🔗 useful links


created with ❤️ for the amino community

©

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

amino_light_bots-0.0.8.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

amino_light_bots-0.0.8-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file amino_light_bots-0.0.8.tar.gz.

File metadata

  • Download URL: amino_light_bots-0.0.8.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for amino_light_bots-0.0.8.tar.gz
Algorithm Hash digest
SHA256 5a9e143fdff02d5c29b6038d0e2b9c2b72d035c723f5b34a33530dd3fed6c1cb
MD5 3bfcfe54b232e4e5918e185804e9b684
BLAKE2b-256 5e7b01eeab927b02cad6c346d25ffc02ca3914475a77e636923100f2996f6456

See more details on using hashes here.

File details

Details for the file amino_light_bots-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for amino_light_bots-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 04721b4b55b4341acef2360d449259549f756b3ab27107d322ba4d88811b843f
MD5 4533d3b8e1852d171953895d974ab3f5
BLAKE2b-256 d63d3b18112f57f747edc58d959423f1de83c7e00745d2cd44d79e7479ac7dee

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