Package: rubx
Rubika Client API Framework | Python 3Document•Telegram•RubikaRubx | Rubika ClientMessenger Methods:fromrbimportRubikaClient# rb: is main packagewithRubikaClient('session',platform='rubx',)asclient:# set the proxy, api client, api version, ...client.send_message('Hey There!','username')# username, chat id, prviate linksOrfromrbimportRubikaClientdefrespond(callable,params)->dict:returncallable(**params)withRubikaClient(...)asclient:print(respond(client.send_message,dict(chat_id=...,text='**Hey** @User@  __My__ ``Friend`` ~~How r u?~~'mention_user_ids=['u0...']),))# for emoji# print(respond(client.send_message, dict(chat_id=..., sticker=True, emoji_character='😜', sticker_id=..., )))Or# shorcutsfromrbimportRubikaClientfromrb.responsesimportSelfwithRubikaClient(...)asclient:print(client==Self.Text(text='Hey',chat_id='chat-guid'))# to send a message# print(client * 'chat-guid') # to get chat info# print(client['chat-guid']) # to get a message from chat# client['send_message'] = dict(text='Hey there', chat_id='chat-guid') # example to usage methods with setitem# use the all operatorsif you forget the method namefromrbimportRubikaClientwithRubikaClient('session')asclient:print(client.getChatInfo(client,'chat-guid'))# GetChatInfo, GETchatINFO, or ...# normally: client.get_chat_info('chat-guid')Rubino Methods:fromrbimportRubinoClientwithRubinoClient('session')asapp:app.create_page(...)Handler Methods:Handler ExamplesfromrbimportHandler,EventBuilder,Filtersclient=Handler(...)# handlers: HandShake, ChatsUpdates, MessagesUpdatesclient.add_event_handling(func='ChatsUpdates',events=dict(get_chats=True,get_messages=True,pattern=('/start','Hey from rubx lib.')))@client.handlerdefhello(app,message:EventBuilder,event):# to print message: print(message) or print(event)# to use all methods: app.create_objcet_voice_chat(...)message.respond(message.pattern,Filters.author)# filters: chat, group, channel, authorOrfromrbimportHandler,Filters,Performersclient=Handler('session')defevent(message):message.respond(message.pattern,Filters.author)client.add_event_handling(func=Performers.hand_shake,events=dict(get_chats=True,get_messages=True,pattern=('/start','Hi from rubx lib.')))client.starting=Trueclient.command_handler(event)To using HandShake(WebSocket):fromrbimportHandler,EventBuilder,Filters,Performersclient=Handler('abc...','u0...')client.add_event_handling(func=Performers.hand_shake,events=dict(get_messages=True,get_chats=False))@client.handlerdefupdate(app,update,event):ifupdate.message.text=='/start':message.reply(text='Hello my dear',chat_id=update.message.author_object_guid,reply_to_message_id=update.message.message_id)# or using repond: message.respond('Hey!', Filters.author)Async Methods:fromrbimportClient# Client: asycn readerasyncdefrun(*args):asyncwithClient(...)asclient:result=awaitclient.start(client.send_message,'Hey! from rubx','chat-guid')print(result)Client.run(run)Bot API Methods:example for api methods send message textfromrbimportBotAPIwithBotAPI(__name__,'token')asapp:app.send_message('chat-id','Hey!')Handler the Bot APIfromrbimportBotAPIwithBotAPI(__name__,'token')asapp:app.add_event_handling((r'\w{1}start .+','Hello'))@app.handlerdefupdate(methods,update,event):...Rubx - ⚡Now the best ‍sync‍andasycnlibrary for Rubika's was developed⭐️ Thankseveryonewho has starred the project, it means a lot!Rubxis an syncPython 3rubika library to interact with Rubika's API
as a user or through a bot account (self API alternative).🔴 If you have code using Rubx before its 8.0.5 version, you must
read docs to learn how to migrate. 💡What is this?🇮🇷 - Rubika is a popular messaging application. This library is meant
to make it easy for you to write Python programs that can interact
with Rubika. Think of it as a wrapper that has already done the
heavy job for you, so you can focus on developing an application.
This module provides all the desired methods with a very simple and beautiful user interface and has a very high speed.
Give your employer the best experience of a project.Updates - 🌀 :- Complete documentation and optimization.INSTALLINGpipinstallrubxUPGRADEpip install rubx --upgradeself rubika client with python3 RUBX modulespecial:[RUBX] > a library 'official' for rubika messnger with client server.[RUBX] > use api's rubika, and full methods.