Fast and powerfull Rubika API library for building self bots.
pip install -U pyrubi
from pyrubi import Client
from pyrubi.types import Message
client = Client("mySelf")
@client.on_message(regexp="hello")
def send_hello(message: Message):
message.reply("**hello** __from__ ##pyrubi##")
client.run()
also you can enter your session data manually:
from pyrubi import Client
from pyrubi.types import Message
auth_key = "abcdefghijklnopkrstuvwxyzazxcqwe"
private_key = "-----BEGIN RSA PRIVATE KEY-----\n..."
client = Client(auth=auth_key, private=private_key)
@client.on_message(regexp="hello")
def send_hello(message: Message):
message.reply("**hello** __from__ ##pyrubi##")
client.run()
-
Fast : The requests are very fast and optimize.
-
Powerful : While the library is simple, it has high speed and features that make your work easier and faster
-
Easy : All methods and features are designed as easy and optimal as possible