2017-01-22 17:40:56 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* This file is automatic generated by build_docs.php file
|
|
|
|
* and is used only for autocomplete in multiple IDE
|
2017-01-25 23:16:22 +01:00
|
|
|
* don't modify manually.
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
namespace danog\MadelineProto;
|
|
|
|
|
|
|
|
interface auth
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string phone_number,
|
2019-06-05 12:04:36 +02:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_CheckedPhone
|
|
|
|
*/
|
|
|
|
public function checkPhone(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string phone_number,
|
|
|
|
* int sms_type,
|
2017-01-22 17:40:56 +01:00
|
|
|
* int api_id,
|
|
|
|
* string api_hash,
|
2019-06-05 12:04:36 +02:00
|
|
|
* string lang_code,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_SentCode
|
|
|
|
*/
|
|
|
|
public function sendCode(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2019-06-05 12:04:36 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string phone_number,
|
|
|
|
* string phone_code_hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function sendCall(array $params);
|
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string phone_number,
|
|
|
|
* string phone_code_hash,
|
|
|
|
* string phone_code,
|
|
|
|
* string first_name,
|
|
|
|
* string last_name,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_Authorization
|
|
|
|
*/
|
|
|
|
public function signUp(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string phone_number,
|
|
|
|
* string phone_code_hash,
|
|
|
|
* string phone_code,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_Authorization
|
|
|
|
*/
|
|
|
|
public function signIn(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function logOut();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function resetAuthorizations();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2019-06-05 12:04:36 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string phone_numbers,
|
|
|
|
* string message,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function sendInvites(array $params);
|
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int dc_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_ExportedAuthorization
|
|
|
|
*/
|
|
|
|
public function exportAuthorization(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int id,
|
|
|
|
* bytes bytes,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_Authorization
|
|
|
|
*/
|
|
|
|
public function importAuthorization(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* long perm_auth_key_id,
|
|
|
|
* long nonce,
|
|
|
|
* int expires_at,
|
|
|
|
* bytes encrypted_message,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function bindTempAuthKey(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string phone_number,
|
|
|
|
* string phone_code_hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function sendSms(array $params);
|
2017-01-22 17:40:56 +01:00
|
|
|
}
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
interface account
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int token_type,
|
|
|
|
* string token,
|
2019-06-05 12:04:36 +02:00
|
|
|
* string device_model,
|
|
|
|
* string system_version,
|
|
|
|
* string app_version,
|
2018-02-18 14:18:18 +01:00
|
|
|
* Bool app_sandbox,
|
2019-06-05 12:04:36 +02:00
|
|
|
* string lang_code,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function registerDevice(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int token_type,
|
|
|
|
* string token,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function unregisterDevice(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputNotifyPeer peer,
|
|
|
|
* InputPeerNotifySettings settings,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function updateNotifySettings(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputNotifyPeer peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return PeerNotifySettings
|
|
|
|
*/
|
|
|
|
public function getNotifySettings(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function resetNotifySettings();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string first_name,
|
|
|
|
* string last_name,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return User
|
|
|
|
*/
|
|
|
|
public function updateProfile(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* Bool offline,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function updateStatus(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return Vector_of_WallPaper
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getWallPapers();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string username,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function checkUsername(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string username,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return User
|
|
|
|
*/
|
|
|
|
public function updateUsername(array $params);
|
2019-06-05 12:04:36 +02:00
|
|
|
}
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2019-06-05 12:04:36 +02:00
|
|
|
interface users
|
|
|
|
{
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputUser id,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return Vector_of_User
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getUsers(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputUser id,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return UserFull
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getFullUser(array $params);
|
|
|
|
}
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2019-06-05 12:04:36 +02:00
|
|
|
interface contacts
|
|
|
|
{
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return Vector_of_ContactStatus
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getStatuses();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* string hash,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return contacts_Contacts
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getContacts(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputContact contacts,
|
|
|
|
* Bool replace,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return contacts_ImportedContacts
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function importContacts(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int limit,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return contacts_Suggested
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getSuggested(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputUser id,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return contacts_Link
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function deleteContact(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputUser id,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function deleteContacts(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputUser id,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return bool
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function block(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputUser id,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function unblock(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int offset,
|
|
|
|
* int limit,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return contacts_Blocked
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getBlocked(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return Vector_of_int
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function exportCard();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int export_card,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return User
|
2018-02-18 14:18:18 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function importCard(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2018-02-18 14:18:18 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* string q,
|
|
|
|
* int limit,
|
2018-02-18 14:18:18 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return contacts_Found
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function search(array $params);
|
|
|
|
}
|
2018-06-29 13:50:14 +02:00
|
|
|
|
2019-06-05 12:04:36 +02:00
|
|
|
interface messages
|
|
|
|
{
|
2018-06-29 13:50:14 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int id,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_Messages
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getMessages(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int offset,
|
|
|
|
* int max_id,
|
|
|
|
* int limit,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_Dialogs
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getDialogs(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPeer peer,
|
|
|
|
* int offset,
|
|
|
|
* int max_id,
|
|
|
|
* int limit,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_Messages
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getHistory(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPeer peer,
|
|
|
|
* string q,
|
|
|
|
* MessagesFilter filter,
|
|
|
|
* int min_date,
|
|
|
|
* int max_date,
|
|
|
|
* int offset,
|
|
|
|
* int max_id,
|
|
|
|
* int limit,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_Messages
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function search(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPeer peer,
|
|
|
|
* int max_id,
|
|
|
|
* int offset,
|
|
|
|
* Bool read_contents,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_AffectedHistory
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function readHistory(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPeer peer,
|
|
|
|
* int offset,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_AffectedHistory
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function deleteHistory(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int id,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return Vector_of_int
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function deleteMessages(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int max_id,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return Vector_of_int
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function receivedMessages(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPeer peer,
|
|
|
|
* SendMessageAction action,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function setTyping(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPeer peer,
|
|
|
|
* string message,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_SentMessage
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function sendMessage(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPeer peer,
|
|
|
|
* InputMedia media,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_StatedMessage
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function sendMedia(array $params);
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPeer peer,
|
|
|
|
* int id,
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_StatedMessages
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function forwardMessages(array $params);
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPeer peer,
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function reportSpam(array $params);
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int id,
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_Chats
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getChats(array $params);
|
2019-03-08 14:16:57 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int chat_id,
|
2019-03-08 14:16:57 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_ChatFull
|
2019-03-08 14:16:57 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getFullChat(array $params);
|
2019-03-08 14:16:57 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int chat_id,
|
|
|
|
* string title,
|
2019-03-08 14:16:57 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_StatedMessage
|
2019-03-08 14:16:57 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function editChatTitle(array $params);
|
2019-03-08 14:16:57 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int chat_id,
|
|
|
|
* InputChatPhoto photo,
|
2019-03-08 14:16:57 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_StatedMessage
|
2019-03-08 14:16:57 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function editChatPhoto(array $params);
|
2019-03-08 14:16:57 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int chat_id,
|
|
|
|
* InputUser user_id,
|
|
|
|
* int fwd_limit,
|
2019-03-08 14:16:57 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_StatedMessage
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function addChatUser(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int chat_id,
|
2017-01-22 17:40:56 +01:00
|
|
|
* InputUser user_id,
|
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_StatedMessage
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function deleteChatUser(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputUser users,
|
|
|
|
* string title,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_StatedMessage
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function createChat(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPeer peer,
|
|
|
|
* int id,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_StatedMessage
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function forwardMessage(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputUser contacts,
|
|
|
|
* string message,
|
|
|
|
* InputMedia media,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_StatedMessages
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function sendBroadcast(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int version,
|
|
|
|
* int random_length,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_DhConfig
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getDhConfig(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputUser user_id,
|
|
|
|
* bytes g_a,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return EncryptedChat
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function requestEncryption(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* bytes g_b,
|
|
|
|
* long key_fingerprint,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return EncryptedChat
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function acceptEncryption(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int chat_id,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function discardEncryption(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* Bool typing,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function setEncryptedTyping(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* int max_date,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return bool
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function readEncryptedHistory(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* bytes data,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_SentEncryptedMessage
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function sendEncrypted(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* bytes data,
|
|
|
|
* InputEncryptedFile file,
|
2017-06-30 15:36:33 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_SentEncryptedMessage
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function sendEncryptedFile(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* bytes data,
|
2017-06-30 15:36:33 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return messages_SentEncryptedMessage
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function sendEncryptedService(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-08-21 18:22:02 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int max_qts,
|
2017-08-21 18:22:02 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return Vector_of_long
|
2017-08-21 18:22:02 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function receivedQueue(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-08-21 18:22:02 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int id,
|
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return Vector_of_int
|
2017-08-21 18:22:02 +02:00
|
|
|
*/
|
|
|
|
public function readMessageContents(array $params);
|
2017-01-22 17:40:56 +01:00
|
|
|
}
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2019-06-05 12:04:36 +02:00
|
|
|
interface updates
|
2017-03-31 17:35:20 +02:00
|
|
|
{
|
|
|
|
/**
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return updates_State
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getState();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* int pts,
|
|
|
|
* int date,
|
|
|
|
* int qts,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return updates_Difference
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getDifference(array $params);
|
2017-03-31 17:35:20 +02:00
|
|
|
}
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2019-06-05 12:04:36 +02:00
|
|
|
interface photos
|
2017-03-31 17:35:20 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPhoto id,
|
|
|
|
* InputPhotoCrop crop,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return UserProfilePhoto
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function updateProfilePhoto(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputFile file,
|
|
|
|
* string caption,
|
|
|
|
* InputGeoPoint geo_point,
|
|
|
|
* InputPhotoCrop crop,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return photos_Photo
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function uploadProfilePhoto(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputPhoto id,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return Vector_of_long
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function deletePhotos(array $params);
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser user_id,
|
2019-06-05 12:04:36 +02:00
|
|
|
* int offset,
|
|
|
|
* int max_id,
|
|
|
|
* int limit,
|
2017-06-30 15:36:33 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return photos_Photos
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getUserPhotos(array $params);
|
2017-06-30 15:36:33 +02:00
|
|
|
}
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2019-06-05 12:04:36 +02:00
|
|
|
interface upload
|
2017-01-25 23:16:22 +01:00
|
|
|
{
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* long file_id,
|
|
|
|
* int file_part,
|
|
|
|
* bytes bytes,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function saveFilePart(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-25 23:16:22 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputFileLocation location,
|
|
|
|
* int offset,
|
|
|
|
* int limit,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return upload_File
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getFile(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* long file_id,
|
|
|
|
* int file_part,
|
|
|
|
* int file_total_parts,
|
|
|
|
* bytes bytes,
|
2017-01-25 23:16:22 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function saveBigFilePart(array $params);
|
2017-01-25 23:16:22 +01:00
|
|
|
}
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2019-06-05 12:04:36 +02:00
|
|
|
interface help
|
2017-06-30 15:36:33 +02:00
|
|
|
{
|
|
|
|
/**
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return Config
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getConfig();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return NearestDc
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getNearestDc();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* string device_model,
|
|
|
|
* string system_version,
|
|
|
|
* string app_version,
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
* string lang_code,
|
2017-06-30 15:36:33 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return help_AppUpdate
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getAppUpdate(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
* @param array params [
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputAppEvent events,
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return bool
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function saveAppLog(array $params);
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string lang_code,
|
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return help_InviteText
|
|
|
|
*/
|
|
|
|
public function getInviteText(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return help_Support
|
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes
* Implement more async
* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr
* Apply fixes from StyleCI
* Bugfixes
* Apply fixes from StyleCI
* Bugfixes, implement combined promises
* Apply fixes from StyleCI
* Support passing method arguments as callable
* Starting to write async upload logic
* Apply fixes from StyleCI
* Start implementing async file upload
* Apply fixes from StyleCI
* bugfix
* Apply fixes from StyleCI
* Start rewriting connection module
* Add PHP file docblocks for all classes
* Start working on new async stream API
* Finish writing stream API
* More stream API fixes
* Apply fixes from StyleCI
* Rewrite DataCenter and Connection modules
* Clean up stream API documentation
* Fixes
* Apply fixes from StyleCI
* Add referenced parameter to get length of buffer to read in getReadBuffer API
* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar
* Start fixing reads
* Fix all protocol stream wrappers
* Apply fixes from StyleCI
* Implement disconnection, and remove end function
* Working async RPC
* Implement async file upload
* Bugfix
* Method recall bugfixes
* Bugfixes
* Trait bugfixes
* Fix FIFO buffer
* Bugfixes and speedtests
* Async logging
* Implement websocket streams
* Implement loop API, signal API, clean closing and start changing layer
* Small magna, websocket and HTTP fixes
* Clean up loop API
* Improved stack traces, 2FA and async
* Login fixes
* Added instructions for manual verification
* Small fixes
* More app info improvements
* More app info improvements
* TL and 2FA fixes
* Update to layer 89
* More bugfixes
* Implement broken media reporting
* Remove debug comments
* PHP 7.2 backwards compatibility
* Bugfixes
* Async key generation
* Some simplifications
* Transport fixes
* Cleanup
* async API
* Performance fixes
* Fixes to async API
* Bugfixes
* Implement one-time async loop
* Authorization and logging fixes
* Update to layer 91
* 7to5 fix
* Null coalesce conversion
* Implement socks5 proxy
* Implement HTTP proxy
* Fixes to HTTP proxy
* MTProxy and socks5 fixes
* Disable PHP 5 conversion
* Proxies have higher priority
* Avoid error handling in vendor
* Override composer dependencies
* Fix travis build
* Final composer fixes
* Proxy logic fixes
* Fix get_updates update handling
* Do not use parallel file driver if not supported
* Refactor loader and implement HTTP fixes
* Suppress errors in loader
* HTTP and authorization fixes
* HTTP fixes
* Improved peer management
* Use HTTP protocol on altervista
* Small bugfixes
* Minor fixes
* Docufix
* Docufix
* Legacy fixes
* Fix message queue
* Avoid updating if using MTProxy
* Improve logs and examples
* Trim final newlines while converting parse mode
* Reimplement noResponse flag
* Async combined event handler and APIFactory fixes
* Actually return config
* Case-insensitive methods
* Bugfix
* Apply fixes from StyleCI (#545)
* MTProxy fixes
* PHP 5 warning
* Improved PHP 5 warning
* Use <br> along with newlines in web logs
* Update docs
2018-12-26 20:51:14 +01:00
|
|
|
*/
|
2019-06-05 12:04:36 +02:00
|
|
|
public function getSupport();
|
2018-02-24 17:54:39 +01:00
|
|
|
}
|