Skip to content

Rubika-PHP is a PHP Library for interaction with rubika (social network)

License

Notifications You must be signed in to change notification settings

ErfanBahramali/Rubika-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Total Downloads Latest Stable Version License

Rubika-PHP

Rubika-PHP is a PHP Library for interaction with rubika (social network)

Installation

composer require bahramali/rubika-php

Usage

object_guid($user_guid,$group_guid,$channel_guid and other) is a unique code for user, group, channel and other

set_time_limit(0);
require_once __DIR__ . '/vendor/autoload.php';

use RubikaPHP\RubikaPHP;

$account = new RubikaPHP(989123456789); // Only without zero and with area code 98
$account->onUpdate(function (array $update) use ($account) {
    if (isset($update['data_enc'])) {
        $message = $update['data_enc'];
        // other code
    }
});
$account->getChats(); // get all of chats

$account->getChatAds(); // get all of chats ads

$account->getChatsUpdates(); // get chat updates

$account->getMySessions(); // get all of account session

$account->getUserInfo($user_guid);

$account->getGroupInfo($group_guid);

$account->getChannelInfo($channel_guid);

$account->getAbsObjects($objects_guids);

$account->getMessagesInterval($object_guid, $middle_message_id); // get message content by message id

$account->getMessagesUpdates($object_guid);

$account->getMessages($object_guid, $sort, $filter_type, $max_id);

$account->getMessagesByID($object_guid, $message_ids);

$account->getPollStatus($poll_id);

$account->seenChats($seen_list);

$account->searchChatMessages($search_text, $type, $object_guid);

$account->searchGlobalObjects($search_text);

$account->searchGlobalMessages($search_text, $type);

$account->sendMessage($object_guid, $text);

$account->votePoll($poll_id, $selection_index);

Example

About Us

This library can be used for easy interaction with Rubika just like official applications.

Disclaimer

This library is free and can not be sold.

The responsibility for using this library lies with the individual

License

Rubika-PHP is licensed under the MIT License - see the LICENSE file for details

About

Rubika-PHP is a PHP Library for interaction with rubika (social network)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages