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,
|
|
|
|
* int api_id,
|
|
|
|
* string api_hash,
|
2019-06-05 15:38:32 +02:00
|
|
|
* CodeSettings settings,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_SentCode
|
|
|
|
*/
|
|
|
|
public function sendCode(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 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
|
|
|
|
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
|
|
|
|
2019-06-05 15:38:32 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int api_id,
|
|
|
|
* string api_hash,
|
|
|
|
* string bot_auth_token,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_Authorization
|
|
|
|
*/
|
|
|
|
public function importBotAuthorization(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputCheckPasswordSRP password,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_Authorization
|
|
|
|
*/
|
|
|
|
public function checkPassword(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return auth_PasswordRecovery
|
|
|
|
*/
|
|
|
|
public function requestPasswordRecovery();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string code,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_Authorization
|
|
|
|
*/
|
|
|
|
public function recoverPassword(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string phone_number,
|
|
|
|
* string phone_code_hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return auth_SentCode
|
|
|
|
*/
|
|
|
|
public function resendCode(array $params);
|
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string phone_number,
|
|
|
|
* string phone_code_hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function cancelCode(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* long except_auth_keys,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function dropTempAuthKeys(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 [
|
2019-07-09 20:53:25 +02:00
|
|
|
* boolean no_muted,
|
2017-01-22 17:40:56 +01:00
|
|
|
* int token_type,
|
|
|
|
* string token,
|
2018-02-18 14:18:18 +01:00
|
|
|
* Bool app_sandbox,
|
2019-06-05 15:38:32 +02:00
|
|
|
* bytes secret,
|
|
|
|
* int other_uids,
|
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,
|
2019-06-05 15:38:32 +02:00
|
|
|
* int other_uids,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @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,
|
2019-06-05 15:38:32 +02:00
|
|
|
* string about,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @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 15:38:32 +02:00
|
|
|
* @param array params [
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return account_WallPapers
|
|
|
|
*/
|
|
|
|
public function getWallPapers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* ReportReason reason,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function reportPeer(array $params);
|
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);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputPrivacyKey key,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return account_PrivacyRules
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getPrivacy(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputPrivacyKey key,
|
|
|
|
* InputPrivacyRule rules,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return account_PrivacyRules
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function setPrivacy(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* string reason,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function deleteAccount(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return AccountDaysTTL
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getAccountTTL();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* AccountDaysTTL ttl,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function setAccountTTL(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* string phone_number,
|
|
|
|
* CodeSettings settings,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return auth_SentCode
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function sendChangePhoneCode(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* string phone_number,
|
|
|
|
* string phone_code_hash,
|
|
|
|
* string phone_code,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return User
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function changePhone(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* int period,
|
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 15:38:32 +02:00
|
|
|
public function updateDeviceLocked(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return account_Authorizations
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getAuthorizations();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* long hash,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function resetAuthorization(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return account_Password
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getPassword();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputCheckPasswordSRP password,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return account_PasswordSettings
|
2018-02-18 14:18:18 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getPasswordSettings(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2018-02-18 14:18:18 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputCheckPasswordSRP password,
|
|
|
|
* account_PasswordInputSettings new_settings,
|
2018-02-18 14:18:18 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function updatePasswordSettings(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* string hash,
|
|
|
|
* CodeSettings settings,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return auth_SentCode
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function sendConfirmPhoneCode(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* string phone_code_hash,
|
|
|
|
* string phone_code,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function confirmPhone(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputCheckPasswordSRP password,
|
|
|
|
* int period,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return account_TmpPassword
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getTmpPassword(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return account_WebAuthorizations
|
|
|
|
*/
|
|
|
|
public function getWebAuthorizations();
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* long hash,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function resetWebAuthorization(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function resetWebAuthorizations();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Vector_of_SecureValue
|
|
|
|
*/
|
|
|
|
public function getAllSecureValues();
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* SecureValueType types,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return Vector_of_SecureValue
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getSecureValue(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputSecureValue value,
|
|
|
|
* long secure_secret_id,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return SecureValue
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function saveSecureValue(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* SecureValueType types,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function deleteSecureValue(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* int bot_id,
|
|
|
|
* string scope,
|
|
|
|
* string public_key,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return account_AuthorizationForm
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getAuthorizationForm(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* int bot_id,
|
|
|
|
* string scope,
|
|
|
|
* string public_key,
|
|
|
|
* SecureValueHash value_hashes,
|
|
|
|
* SecureCredentialsEncrypted credentials,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function acceptAuthorization(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* string phone_number,
|
|
|
|
* CodeSettings settings,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return auth_SentCode
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function sendVerifyPhoneCode(array $params);
|
2018-06-29 13:50:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* string phone_number,
|
|
|
|
* string phone_code_hash,
|
|
|
|
* string phone_code,
|
2018-06-29 13:50:14 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2018-06-29 13:50:14 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function verifyPhone(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 15:38:32 +02:00
|
|
|
* string email,
|
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 15:38:32 +02:00
|
|
|
* @return account_SentEmailCode
|
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 15:38:32 +02:00
|
|
|
public function sendVerifyEmailCode(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 15:38:32 +02:00
|
|
|
* string email,
|
|
|
|
* string code,
|
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 15:38:32 +02:00
|
|
|
public function verifyEmail(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 15:38:32 +02:00
|
|
|
* boolean contacts,
|
|
|
|
* boolean message_users,
|
|
|
|
* boolean message_chats,
|
|
|
|
* boolean message_megagroups,
|
|
|
|
* boolean message_channels,
|
|
|
|
* boolean files,
|
|
|
|
* int file_max_size,
|
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 15:38:32 +02:00
|
|
|
* @return account_Takeout
|
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 15:38:32 +02:00
|
|
|
public function initTakeoutSession(array $params);
|
2019-03-08 14:16:57 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* boolean success,
|
2019-03-08 14:16:57 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2019-03-08 14:16:57 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function finishTakeoutSession(array $params);
|
2019-03-08 14:16:57 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* string code,
|
2019-03-08 14:16:57 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2019-03-08 14:16:57 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function confirmPasswordEmail(array $params);
|
2019-03-08 14:16:57 +01:00
|
|
|
|
|
|
|
/**
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2019-03-08 14:16:57 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function resendPasswordEmail();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function cancelPasswordEmail();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function getContactSignUpNotification();
|
2019-03-08 14:16:57 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* Bool silent,
|
2019-03-08 14:16:57 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function setContactSignUpNotification(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* boolean compare_sound,
|
|
|
|
* InputNotifyPeer peer,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return Updates
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getNotifyExceptions(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputWallPaper wallpaper,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return WallPaper
|
|
|
|
*/
|
|
|
|
public function getWallPaper(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputFile file,
|
|
|
|
* string mime_type,
|
|
|
|
* WallPaperSettings settings,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return WallPaper
|
|
|
|
*/
|
|
|
|
public function uploadWallPaper(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputWallPaper wallpaper,
|
|
|
|
* Bool unsave,
|
|
|
|
* WallPaperSettings settings,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function saveWallPaper(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputWallPaper wallpaper,
|
|
|
|
* WallPaperSettings settings,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function installWallPaper(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function resetWallPapers();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return account_AutoDownloadSettings
|
|
|
|
*/
|
|
|
|
public function getAutoDownloadSettings();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean low,
|
|
|
|
* boolean high,
|
|
|
|
* AutoDownloadSettings settings,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function saveAutoDownloadSettings(array $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
interface users
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_User
|
|
|
|
*/
|
|
|
|
public function getUsers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return UserFull
|
|
|
|
*/
|
|
|
|
public function getFullUser(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser id,
|
|
|
|
* SecureValueError errors,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setSecureValueErrors(array $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
interface contacts
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_int
|
|
|
|
*/
|
|
|
|
public function getContactIDs(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Vector_of_ContactStatus
|
|
|
|
*/
|
|
|
|
public function getStatuses();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return contacts_Contacts
|
|
|
|
*/
|
|
|
|
public function getContacts(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputContact contacts,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return contacts_ImportedContacts
|
|
|
|
*/
|
|
|
|
public function importContacts(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser id,
|
|
|
|
* ]
|
|
|
|
*
|
2019-06-24 15:46:38 +02:00
|
|
|
* @return Updates
|
2019-06-05 15:38:32 +02:00
|
|
|
*/
|
|
|
|
public function deleteContacts(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string phones,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function deleteByPhones(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function block(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function unblock(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int offset,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return contacts_Blocked
|
|
|
|
*/
|
|
|
|
public function getBlocked(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string q,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return contacts_Found
|
|
|
|
*/
|
|
|
|
public function search(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string username,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return contacts_ResolvedPeer
|
|
|
|
*/
|
|
|
|
public function resolveUsername(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean correspondents,
|
|
|
|
* boolean bots_pm,
|
|
|
|
* boolean bots_inline,
|
|
|
|
* boolean phone_calls,
|
2019-06-23 13:08:44 +02:00
|
|
|
* boolean forward_users,
|
|
|
|
* boolean forward_chats,
|
2019-06-05 15:38:32 +02:00
|
|
|
* boolean groups,
|
|
|
|
* boolean channels,
|
|
|
|
* int offset,
|
|
|
|
* int limit,
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return contacts_TopPeers
|
|
|
|
*/
|
|
|
|
public function getTopPeers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* TopPeerCategory category,
|
|
|
|
* InputPeer peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function resetTopPeerRating(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function resetSaved();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Vector_of_SavedContact
|
|
|
|
*/
|
|
|
|
public function getSaved();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* Bool enabled,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function toggleTopPeers(array $params);
|
2019-06-24 15:46:38 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean add_phone_privacy_exception,
|
|
|
|
* InputUser id,
|
|
|
|
* string first_name,
|
|
|
|
* string last_name,
|
|
|
|
* string phone,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function addContact(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function acceptContact(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputGeoPoint geo_point,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function getLocated(array $params);
|
2019-06-05 15:38:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface messages
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputMessage id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Messages
|
|
|
|
*/
|
|
|
|
public function getMessages(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean exclude_pinned,
|
2019-06-23 13:08:44 +02:00
|
|
|
* int folder_id,
|
2019-06-05 15:38:32 +02:00
|
|
|
* int offset_date,
|
|
|
|
* int offset_id,
|
|
|
|
* InputPeer offset_peer,
|
|
|
|
* int limit,
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Dialogs
|
|
|
|
*/
|
|
|
|
public function getDialogs(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int offset_id,
|
|
|
|
* int offset_date,
|
|
|
|
* int add_offset,
|
|
|
|
* int limit,
|
|
|
|
* int max_id,
|
|
|
|
* int min_id,
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Messages
|
|
|
|
*/
|
|
|
|
public function getHistory(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* string q,
|
|
|
|
* InputUser from_id,
|
|
|
|
* MessagesFilter filter,
|
|
|
|
* int min_date,
|
|
|
|
* int max_date,
|
|
|
|
* int offset_id,
|
|
|
|
* int add_offset,
|
|
|
|
* int limit,
|
|
|
|
* int max_id,
|
|
|
|
* int min_id,
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Messages
|
|
|
|
*/
|
|
|
|
public function search(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int max_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_AffectedMessages
|
|
|
|
*/
|
|
|
|
public function readHistory(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean just_clear,
|
|
|
|
* boolean revoke,
|
|
|
|
* InputPeer peer,
|
|
|
|
* int max_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_AffectedHistory
|
|
|
|
*/
|
|
|
|
public function deleteHistory(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean revoke,
|
|
|
|
* int id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_AffectedMessages
|
|
|
|
*/
|
|
|
|
public function deleteMessages(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int max_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_ReceivedNotifyMessage
|
|
|
|
*/
|
|
|
|
public function receivedMessages(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* SendMessageAction action,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setTyping(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean no_webpage,
|
|
|
|
* boolean silent,
|
|
|
|
* boolean background,
|
|
|
|
* boolean clear_draft,
|
|
|
|
* InputPeer peer,
|
|
|
|
* int reply_to_msg_id,
|
|
|
|
* string message,
|
|
|
|
* ReplyMarkup reply_markup,
|
|
|
|
* MessageEntity entities,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function sendMessage(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean silent,
|
|
|
|
* boolean background,
|
|
|
|
* boolean clear_draft,
|
|
|
|
* InputPeer peer,
|
|
|
|
* int reply_to_msg_id,
|
|
|
|
* InputMedia media,
|
|
|
|
* string message,
|
|
|
|
* ReplyMarkup reply_markup,
|
|
|
|
* MessageEntity entities,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function sendMedia(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean silent,
|
|
|
|
* boolean background,
|
|
|
|
* boolean with_my_score,
|
|
|
|
* boolean grouped,
|
|
|
|
* InputPeer from_peer,
|
|
|
|
* int id,
|
|
|
|
* InputPeer to_peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function forwardMessages(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function reportSpam(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return PeerSettings
|
|
|
|
*/
|
|
|
|
public function getPeerSettings(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int id,
|
|
|
|
* ReportReason reason,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function report(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Chats
|
|
|
|
*/
|
|
|
|
public function getChats(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int chat_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_ChatFull
|
|
|
|
*/
|
|
|
|
public function getFullChat(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int chat_id,
|
|
|
|
* string title,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function editChatTitle(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int chat_id,
|
|
|
|
* InputChatPhoto photo,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function editChatPhoto(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int chat_id,
|
|
|
|
* InputUser user_id,
|
|
|
|
* int fwd_limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function addChatUser(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int chat_id,
|
|
|
|
* InputUser user_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function deleteChatUser(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser users,
|
|
|
|
* string title,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
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 15:38:32 +02:00
|
|
|
* int version,
|
|
|
|
* int random_length,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_DhConfig
|
|
|
|
*/
|
|
|
|
public function getDhConfig(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser user_id,
|
|
|
|
* bytes g_a,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return EncryptedChat
|
|
|
|
*/
|
|
|
|
public function requestEncryption(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* bytes g_b,
|
|
|
|
* long key_fingerprint,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return EncryptedChat
|
|
|
|
*/
|
|
|
|
public function acceptEncryption(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int chat_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function discardEncryption(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* Bool typing,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setEncryptedTyping(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* int max_date,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function readEncryptedHistory(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* bytes data,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_SentEncryptedMessage
|
|
|
|
*/
|
|
|
|
public function sendEncrypted(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* bytes data,
|
|
|
|
* InputEncryptedFile file,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_SentEncryptedMessage
|
|
|
|
*/
|
|
|
|
public function sendEncryptedFile(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* bytes data,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_SentEncryptedMessage
|
|
|
|
*/
|
|
|
|
public function sendEncryptedService(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int max_qts,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_long
|
|
|
|
*/
|
|
|
|
public function receivedQueue(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function reportEncryptedSpam(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_AffectedMessages
|
|
|
|
*/
|
|
|
|
public function readMessageContents(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string emoticon,
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Stickers
|
|
|
|
*/
|
|
|
|
public function getStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_AllStickers
|
|
|
|
*/
|
|
|
|
public function getAllStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string message,
|
|
|
|
* MessageEntity entities,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return MessageMedia
|
|
|
|
*/
|
|
|
|
public function getWebPagePreview(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return ExportedChatInvite
|
|
|
|
*/
|
|
|
|
public function exportChatInvite(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return ChatInvite
|
|
|
|
*/
|
|
|
|
public function checkChatInvite(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function importChatInvite(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputStickerSet stickerset,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_StickerSet
|
|
|
|
*/
|
|
|
|
public function getStickerSet(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputStickerSet stickerset,
|
|
|
|
* Bool archived,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_StickerSetInstallResult
|
|
|
|
*/
|
|
|
|
public function installStickerSet(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputStickerSet stickerset,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function uninstallStickerSet(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser bot,
|
|
|
|
* InputPeer peer,
|
|
|
|
* string start_param,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function startBot(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int id,
|
|
|
|
* Bool increment,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_int
|
|
|
|
*/
|
|
|
|
public function getMessagesViews(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int chat_id,
|
|
|
|
* InputUser user_id,
|
|
|
|
* Bool is_admin,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function editChatAdmin(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int chat_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function migrateChat(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-24 15:46:38 +02:00
|
|
|
* int folder_id,
|
2019-06-05 15:38:32 +02:00
|
|
|
* string q,
|
2019-06-23 13:08:44 +02:00
|
|
|
* int offset_rate,
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputPeer offset_peer,
|
|
|
|
* int offset_id,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Messages
|
|
|
|
*/
|
|
|
|
public function searchGlobal(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean masks,
|
|
|
|
* long order,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function reorderStickerSets(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* bytes sha256,
|
|
|
|
* int size,
|
|
|
|
* string mime_type,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Document
|
|
|
|
*/
|
|
|
|
public function getDocumentByHash(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string q,
|
|
|
|
* int offset,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_FoundGifs
|
|
|
|
*/
|
|
|
|
public function searchGifs(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_SavedGifs
|
|
|
|
*/
|
|
|
|
public function getSavedGifs(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputDocument id,
|
|
|
|
* Bool unsave,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function saveGif(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser bot,
|
|
|
|
* InputPeer peer,
|
|
|
|
* InputGeoPoint geo_point,
|
|
|
|
* string query,
|
|
|
|
* string offset,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_BotResults
|
|
|
|
*/
|
|
|
|
public function getInlineBotResults(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean gallery,
|
|
|
|
* boolean private,
|
|
|
|
* long query_id,
|
|
|
|
* InputBotInlineResult results,
|
|
|
|
* int cache_time,
|
|
|
|
* string next_offset,
|
|
|
|
* InlineBotSwitchPM switch_pm,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setInlineBotResults(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean silent,
|
|
|
|
* boolean background,
|
|
|
|
* boolean clear_draft,
|
|
|
|
* boolean hide_via,
|
|
|
|
* InputPeer peer,
|
|
|
|
* int reply_to_msg_id,
|
|
|
|
* long query_id,
|
|
|
|
* string id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function sendInlineBotResult(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_MessageEditData
|
|
|
|
*/
|
|
|
|
public function getMessageEditData(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean no_webpage,
|
|
|
|
* InputPeer peer,
|
|
|
|
* int id,
|
|
|
|
* string message,
|
|
|
|
* InputMedia media,
|
|
|
|
* ReplyMarkup reply_markup,
|
|
|
|
* MessageEntity entities,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function editMessage(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean no_webpage,
|
|
|
|
* InputBotInlineMessageID id,
|
|
|
|
* string message,
|
|
|
|
* InputMedia media,
|
|
|
|
* ReplyMarkup reply_markup,
|
|
|
|
* MessageEntity entities,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function editInlineBotMessage(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean game,
|
|
|
|
* InputPeer peer,
|
|
|
|
* int msg_id,
|
|
|
|
* bytes data,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_BotCallbackAnswer
|
|
|
|
*/
|
|
|
|
public function getBotCallbackAnswer(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean alert,
|
|
|
|
* long query_id,
|
|
|
|
* string message,
|
|
|
|
* string url,
|
|
|
|
* int cache_time,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setBotCallbackAnswer(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputDialogPeer peers,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_PeerDialogs
|
|
|
|
*/
|
|
|
|
public function getPeerDialogs(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean no_webpage,
|
|
|
|
* int reply_to_msg_id,
|
|
|
|
* InputPeer peer,
|
|
|
|
* string message,
|
|
|
|
* MessageEntity entities,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function saveDraft(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function getAllDrafts();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_FeaturedStickers
|
|
|
|
*/
|
|
|
|
public function getFeaturedStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* long id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function readFeaturedStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean attached,
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_RecentStickers
|
|
|
|
*/
|
|
|
|
public function getRecentStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean attached,
|
|
|
|
* InputDocument id,
|
|
|
|
* Bool unsave,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function saveRecentSticker(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean attached,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function clearRecentStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean masks,
|
|
|
|
* long offset_id,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_ArchivedStickers
|
|
|
|
*/
|
|
|
|
public function getArchivedStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_AllStickers
|
|
|
|
*/
|
|
|
|
public function getMaskStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputStickeredMedia media,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_StickerSetCovered
|
|
|
|
*/
|
|
|
|
public function getAttachedStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean edit_message,
|
|
|
|
* boolean force,
|
|
|
|
* InputPeer peer,
|
|
|
|
* int id,
|
|
|
|
* InputUser user_id,
|
|
|
|
* int score,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function setGameScore(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean edit_message,
|
|
|
|
* boolean force,
|
|
|
|
* InputBotInlineMessageID id,
|
|
|
|
* InputUser user_id,
|
|
|
|
* int score,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setInlineGameScore(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int id,
|
|
|
|
* InputUser user_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_HighScores
|
|
|
|
*/
|
|
|
|
public function getGameHighScores(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputBotInlineMessageID id,
|
|
|
|
* InputUser user_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_HighScores
|
|
|
|
*/
|
|
|
|
public function getInlineGameHighScores(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser user_id,
|
|
|
|
* int max_id,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Chats
|
|
|
|
*/
|
|
|
|
public function getCommonChats(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int except_ids,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Chats
|
|
|
|
*/
|
|
|
|
public function getAllChats(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string url,
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return WebPage
|
|
|
|
*/
|
|
|
|
public function getWebPage(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean pinned,
|
|
|
|
* InputDialogPeer peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function toggleDialogPin(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean force,
|
2019-06-23 13:08:44 +02:00
|
|
|
* int folder_id,
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputDialogPeer order,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function reorderPinnedDialogs(array $params);
|
|
|
|
|
|
|
|
/**
|
2019-06-23 13:08:44 +02:00
|
|
|
* @param array params [
|
|
|
|
* int folder_id,
|
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return messages_PeerDialogs
|
|
|
|
*/
|
2019-06-23 13:08:44 +02:00
|
|
|
public function getPinnedDialogs(array $params);
|
2019-06-05 15:38:32 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* long query_id,
|
|
|
|
* string error,
|
|
|
|
* ShippingOption shipping_options,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setBotShippingResults(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean success,
|
|
|
|
* long query_id,
|
|
|
|
* string error,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setBotPrecheckoutResults(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* InputMedia media,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return MessageMedia
|
|
|
|
*/
|
|
|
|
public function uploadMedia(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int reply_to_msg_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function sendScreenshotNotification(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_FavedStickers
|
|
|
|
*/
|
|
|
|
public function getFavedStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputDocument id,
|
|
|
|
* Bool unfave,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function faveSticker(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int offset_id,
|
|
|
|
* int add_offset,
|
|
|
|
* int limit,
|
|
|
|
* int max_id,
|
|
|
|
* int min_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Messages
|
|
|
|
*/
|
|
|
|
public function getUnreadMentions(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_AffectedHistory
|
|
|
|
*/
|
|
|
|
public function readMentions(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int limit,
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Messages
|
|
|
|
*/
|
|
|
|
public function getRecentLocations(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean silent,
|
|
|
|
* boolean background,
|
|
|
|
* boolean clear_draft,
|
|
|
|
* InputPeer peer,
|
|
|
|
* int reply_to_msg_id,
|
|
|
|
* InputSingleMedia multi_media,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function sendMultiMedia(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputEncryptedChat peer,
|
|
|
|
* InputEncryptedFile file,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return EncryptedFile
|
|
|
|
*/
|
|
|
|
public function uploadEncryptedFile(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean exclude_featured,
|
|
|
|
* string q,
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_FoundStickerSets
|
|
|
|
*/
|
|
|
|
public function searchStickerSets(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Vector_of_MessageRange
|
|
|
|
*/
|
|
|
|
public function getSplitRanges();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean unread,
|
|
|
|
* InputDialogPeer peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function markDialogUnread(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Vector_of_DialogPeer
|
|
|
|
*/
|
|
|
|
public function getDialogUnreadMarks();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function clearAllDrafts();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean silent,
|
|
|
|
* InputPeer peer,
|
|
|
|
* int id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function updatePinnedMessage(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int msg_id,
|
|
|
|
* bytes options,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function sendVote(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int msg_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function getPollResults(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return ChatOnlines
|
|
|
|
*/
|
|
|
|
public function getOnlines(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean dark,
|
|
|
|
* InputPeer peer,
|
|
|
|
* string params,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return StatsURL
|
|
|
|
*/
|
|
|
|
public function getStatsURL(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* string about,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function editChatAbout(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* ChatBannedRights banned_rights,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function editChatDefaultBannedRights(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string lang_code,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return EmojiKeywordsDifference
|
|
|
|
*/
|
|
|
|
public function getEmojiKeywords(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string lang_code,
|
|
|
|
* int from_version,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return EmojiKeywordsDifference
|
|
|
|
*/
|
|
|
|
public function getEmojiKeywordsDifference(array $params);
|
|
|
|
|
2019-06-23 13:08:44 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string lang_codes,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_EmojiLanguage
|
|
|
|
*/
|
|
|
|
public function getEmojiKeywordsLanguages(array $params);
|
|
|
|
|
2019-06-05 15:38:32 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string lang_code,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return EmojiURL
|
|
|
|
*/
|
|
|
|
public function getEmojiURL(array $params);
|
2019-06-23 13:08:44 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* MessagesFilter filters,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_messages_SearchCounter
|
|
|
|
*/
|
|
|
|
public function getSearchCounters(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* int msg_id,
|
|
|
|
* int button_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return UrlAuthResult
|
|
|
|
*/
|
|
|
|
public function requestUrlAuth(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean write_allowed,
|
|
|
|
* InputPeer peer,
|
|
|
|
* int msg_id,
|
|
|
|
* int button_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return UrlAuthResult
|
|
|
|
*/
|
|
|
|
public function acceptUrlAuth(array $params);
|
2019-06-24 15:46:38 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPeer peer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function hidePeerSettingsBar(array $params);
|
2019-06-05 15:38:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface updates
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return updates_State
|
|
|
|
*/
|
|
|
|
public function getState();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int pts,
|
|
|
|
* int pts_total_limit,
|
|
|
|
* int date,
|
|
|
|
* int qts,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return updates_Difference
|
|
|
|
*/
|
|
|
|
public function getDifference(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean force,
|
|
|
|
* InputChannel channel,
|
|
|
|
* ChannelMessagesFilter filter,
|
|
|
|
* int pts,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return updates_ChannelDifference
|
|
|
|
*/
|
|
|
|
public function getChannelDifference(array $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
interface photos
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPhoto id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return UserProfilePhoto
|
|
|
|
*/
|
|
|
|
public function updateProfilePhoto(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputFile file,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return photos_Photo
|
|
|
|
*/
|
|
|
|
public function uploadProfilePhoto(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPhoto id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_long
|
|
|
|
*/
|
|
|
|
public function deletePhotos(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser user_id,
|
|
|
|
* int offset,
|
|
|
|
* long max_id,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return photos_Photos
|
|
|
|
*/
|
|
|
|
public function getUserPhotos(array $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
interface upload
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* long file_id,
|
|
|
|
* int file_part,
|
|
|
|
* bytes bytes,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function saveFilePart(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-08-15 20:33:07 +02:00
|
|
|
* boolean precise,
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputFileLocation location,
|
|
|
|
* int offset,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return upload_File
|
|
|
|
*/
|
|
|
|
public function getFile(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* long file_id,
|
|
|
|
* int file_part,
|
|
|
|
* int file_total_parts,
|
|
|
|
* bytes bytes,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function saveBigFilePart(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputWebFileLocation location,
|
|
|
|
* int offset,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return upload_WebFile
|
|
|
|
*/
|
|
|
|
public function getWebFile(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* bytes file_token,
|
|
|
|
* int offset,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return upload_CdnFile
|
|
|
|
*/
|
|
|
|
public function getCdnFile(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* bytes file_token,
|
|
|
|
* bytes request_token,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_FileHash
|
|
|
|
*/
|
|
|
|
public function reuploadCdnFile(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* bytes file_token,
|
|
|
|
* int offset,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_FileHash
|
|
|
|
*/
|
|
|
|
public function getCdnFileHashes(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputFileLocation location,
|
|
|
|
* int offset,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_FileHash
|
|
|
|
*/
|
|
|
|
public function getFileHashes(array $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
interface help
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return Config
|
|
|
|
*/
|
|
|
|
public function getConfig();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return NearestDc
|
|
|
|
*/
|
|
|
|
public function getNearestDc();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string source,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return help_AppUpdate
|
|
|
|
*/
|
|
|
|
public function getAppUpdate(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return help_InviteText
|
|
|
|
*/
|
|
|
|
public function getInviteText();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return help_Support
|
|
|
|
*/
|
|
|
|
public function getSupport();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string prev_app_version,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function getAppChangelog(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int pending_updates_count,
|
|
|
|
* string message,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setBotUpdatesStatus(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return CdnConfig
|
|
|
|
*/
|
|
|
|
public function getCdnConfig();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string referer,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return help_RecentMeUrls
|
|
|
|
*/
|
|
|
|
public function getRecentMeUrls(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return help_ProxyData
|
|
|
|
*/
|
|
|
|
public function getProxyData();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return help_TermsOfServiceUpdate
|
|
|
|
*/
|
|
|
|
public function getTermsOfServiceUpdate();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* DataJSON id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function acceptTermsOfService(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string path,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return help_DeepLinkInfo
|
|
|
|
*/
|
|
|
|
public function getDeepLinkInfo(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return JSONValue
|
|
|
|
*/
|
|
|
|
public function getAppConfig();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputAppEvent events,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function saveAppLog(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return help_PassportConfig
|
|
|
|
*/
|
|
|
|
public function getPassportConfig(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return help_SupportName
|
|
|
|
*/
|
|
|
|
public function getSupportName();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser user_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return help_UserInfo
|
|
|
|
*/
|
|
|
|
public function getUserInfo(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputUser user_id,
|
|
|
|
* string message,
|
|
|
|
* MessageEntity entities,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return help_UserInfo
|
|
|
|
*/
|
|
|
|
public function editUserInfo(array $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
interface channels
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* int max_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function readHistory(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* int id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_AffectedMessages
|
|
|
|
*/
|
|
|
|
public function deleteMessages(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* InputUser user_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_AffectedHistory
|
|
|
|
*/
|
|
|
|
public function deleteUserHistory(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* InputUser user_id,
|
|
|
|
* int id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function reportSpam(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* InputMessage id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Messages
|
|
|
|
*/
|
|
|
|
public function getMessages(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* ChannelParticipantsFilter filter,
|
|
|
|
* int offset,
|
|
|
|
* int limit,
|
|
|
|
* int hash,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return channels_ChannelParticipants
|
|
|
|
*/
|
|
|
|
public function getParticipants(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* InputUser user_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return channels_ChannelParticipant
|
|
|
|
*/
|
|
|
|
public function getParticipant(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel id,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return messages_Chats
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getChannels(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return messages_ChatFull
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getFullChannel(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* boolean broadcast,
|
|
|
|
* boolean megagroup,
|
|
|
|
* string title,
|
|
|
|
* string about,
|
2019-06-24 15:46:38 +02:00
|
|
|
* InputGeoPoint geo_point,
|
|
|
|
* string address,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return Updates
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function createChannel(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
2019-06-05 12:04:36 +02:00
|
|
|
* InputUser user_id,
|
2019-06-05 15:38:32 +02:00
|
|
|
* ChatAdminRights admin_rights,
|
2019-08-15 20:33:07 +02:00
|
|
|
* string rank,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return Updates
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function editAdmin(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
|
|
|
* string title,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return Updates
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function editTitle(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
|
|
|
* InputChatPhoto photo,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return Updates
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function editPhoto(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
|
|
|
* string username,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function checkUsername(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
|
|
|
* string username,
|
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 15:38:32 +02:00
|
|
|
public function updateUsername(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-22 17:40:56 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
2017-01-22 17:40:56 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return Updates
|
2017-01-22 17:40:56 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function joinChannel(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
2017-06-30 15:36:33 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return Updates
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function leaveChannel(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
|
|
|
* InputUser users,
|
2017-06-30 15:36:33 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return Updates
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function inviteToChannel(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-08-21 18:22:02 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
2017-08-21 18:22:02 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return Updates
|
2017-08-21 18:22:02 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function deleteChannel(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-08-21 18:22:02 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputChannel channel,
|
2017-08-21 18:22:02 +02:00
|
|
|
* int id,
|
2019-06-05 15:38:32 +02:00
|
|
|
* Bool grouped,
|
2017-08-21 18:22:02 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return ExportedMessageLink
|
|
|
|
*/
|
|
|
|
public function exportMessageLink(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* Bool enabled,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function toggleSignatures(array $params);
|
|
|
|
|
|
|
|
/**
|
2019-06-24 15:46:38 +02:00
|
|
|
* @param array params [
|
|
|
|
* boolean by_location,
|
|
|
|
* boolean check_limit,
|
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return messages_Chats
|
|
|
|
*/
|
2019-06-24 15:46:38 +02:00
|
|
|
public function getAdminedPublicChannels(array $params);
|
2019-06-05 15:38:32 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* InputUser user_id,
|
|
|
|
* ChatBannedRights banned_rights,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function editBanned(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* string q,
|
|
|
|
* ChannelAdminLogEventsFilter events_filter,
|
|
|
|
* InputUser admins,
|
|
|
|
* long max_id,
|
|
|
|
* long min_id,
|
|
|
|
* int limit,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return channels_AdminLogResults
|
|
|
|
*/
|
|
|
|
public function getAdminLog(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* InputStickerSet stickerset,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setStickers(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* int id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
2017-08-21 18:22:02 +02:00
|
|
|
*/
|
|
|
|
public function readMessageContents(array $params);
|
2019-06-05 15:38:32 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* int max_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function deleteHistory(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* Bool enabled,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function togglePreHistoryHidden(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int offset,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_Chats
|
|
|
|
*/
|
|
|
|
public function getLeftChannels(array $params);
|
2019-06-23 13:08:44 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return messages_Chats
|
|
|
|
*/
|
|
|
|
public function getGroupsForDiscussion();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel broadcast,
|
|
|
|
* InputChannel group,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function setDiscussionGroup(array $params);
|
2019-06-24 15:46:38 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* InputUser user_id,
|
|
|
|
* InputCheckPasswordSRP password,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function editCreator(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* InputGeoPoint geo_point,
|
|
|
|
* string address,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function editLocation(array $params);
|
2019-08-15 20:33:07 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputChannel channel,
|
|
|
|
* int seconds,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function toggleSlowMode(array $params);
|
2017-01-22 17:40:56 +01:00
|
|
|
}
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2019-06-05 15:38:32 +02:00
|
|
|
interface bots
|
2017-03-31 17:35:20 +02:00
|
|
|
{
|
|
|
|
/**
|
2019-06-05 15:38:32 +02:00
|
|
|
* @param array params [
|
|
|
|
* string custom_method,
|
|
|
|
* DataJSON params,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return DataJSON
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function sendCustomRequest(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* long query_id,
|
|
|
|
* DataJSON data,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return bool
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function answerWebhookJSONQuery(array $params);
|
2017-03-31 17:35:20 +02:00
|
|
|
}
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2019-06-05 15:38:32 +02:00
|
|
|
interface payments
|
2017-03-31 17:35:20 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* int msg_id,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return payments_PaymentForm
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getPaymentForm(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* int msg_id,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return payments_PaymentReceipt
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getPaymentReceipt(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* boolean save,
|
|
|
|
* int msg_id,
|
|
|
|
* PaymentRequestedInfo info,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return payments_ValidatedRequestedInfo
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function validateRequestedInfo(array $params);
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* int msg_id,
|
|
|
|
* string requested_info_id,
|
|
|
|
* string shipping_option_id,
|
|
|
|
* InputPaymentCredentials credentials,
|
2017-06-30 15:36:33 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return payments_PaymentResult
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function sendPaymentForm(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return payments_SavedInfo
|
|
|
|
*/
|
|
|
|
public function getSavedInfo();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean credentials,
|
|
|
|
* boolean info,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function clearSavedInfo(array $params);
|
2017-06-30 15:36:33 +02:00
|
|
|
}
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2019-06-05 15:38:32 +02:00
|
|
|
interface stickers
|
2017-01-25 23:16:22 +01:00
|
|
|
{
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* boolean masks,
|
|
|
|
* InputUser user_id,
|
|
|
|
* string title,
|
|
|
|
* string short_name,
|
|
|
|
* InputStickerSetItem stickers,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return messages_StickerSet
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function createStickerSet(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-01-25 23:16:22 +01:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputDocument sticker,
|
2017-03-31 17:35:20 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return messages_StickerSet
|
2017-03-31 17:35:20 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function removeStickerFromSet(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-03-31 17:35:20 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputDocument sticker,
|
|
|
|
* int position,
|
2017-01-25 23:16:22 +01:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return messages_StickerSet
|
2017-01-25 23:16:22 +01:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function changeStickerPosition(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputStickerSet stickerset,
|
|
|
|
* InputStickerSetItem sticker,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return messages_StickerSet
|
|
|
|
*/
|
|
|
|
public function addStickerToSet(array $params);
|
2017-01-25 23:16:22 +01:00
|
|
|
}
|
2018-02-25 11:17:45 +01:00
|
|
|
|
2019-06-05 15:38:32 +02:00
|
|
|
interface phone
|
2017-06-30 15:36:33 +02:00
|
|
|
{
|
|
|
|
/**
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return DataJSON
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getCallConfig();
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
2019-06-05 15:38:32 +02:00
|
|
|
* @param array params [
|
2019-06-23 13:08:44 +02:00
|
|
|
* boolean video,
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputUser user_id,
|
|
|
|
* bytes g_a_hash,
|
|
|
|
* PhoneCallProtocol protocol,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return phone_PhoneCall
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function requestCall(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
|
2017-06-30 15:36:33 +02:00
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputPhoneCall peer,
|
|
|
|
* bytes g_b,
|
|
|
|
* PhoneCallProtocol protocol,
|
2017-06-30 15:36:33 +02:00
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return phone_PhoneCall
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function acceptCall(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 15:38:32 +02:00
|
|
|
* InputPhoneCall peer,
|
|
|
|
* bytes g_a,
|
|
|
|
* long key_fingerprint,
|
|
|
|
* PhoneCallProtocol protocol,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return phone_PhoneCall
|
|
|
|
*/
|
|
|
|
public function confirmCall(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPhoneCall 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
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 12:04:36 +02:00
|
|
|
* @return bool
|
2017-06-30 15:36:33 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function receivedCall(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
2019-06-23 13:08:44 +02:00
|
|
|
* boolean video,
|
2019-06-05 15:38:32 +02:00
|
|
|
* InputPhoneCall peer,
|
|
|
|
* int duration,
|
|
|
|
* PhoneCallDiscardReason reason,
|
|
|
|
* long connection_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function discardCall(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* boolean user_initiative,
|
|
|
|
* InputPhoneCall peer,
|
|
|
|
* int rating,
|
|
|
|
* string comment,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function setCallRating(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputPhoneCall peer,
|
|
|
|
* DataJSON debug,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function saveCallDebug(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
|
|
|
|
2019-06-05 15:38:32 +02:00
|
|
|
interface langpack
|
|
|
|
{
|
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 15:38:32 +02:00
|
|
|
* string lang_pack,
|
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,
|
|
|
|
* ]
|
|
|
|
*
|
2019-06-05 15:38:32 +02:00
|
|
|
* @return LangPackDifference
|
2019-06-05 12:04:36 +02:00
|
|
|
*/
|
2019-06-05 15:38:32 +02:00
|
|
|
public function getLangPack(array $params);
|
2019-06-05 12:04:36 +02:00
|
|
|
|
|
|
|
/**
|
2019-06-05 15:38:32 +02:00
|
|
|
* @param array params [
|
|
|
|
* string lang_pack,
|
|
|
|
* string lang_code,
|
|
|
|
* string keys,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_LangPackString
|
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 15:38:32 +02:00
|
|
|
public function getStrings(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string lang_pack,
|
|
|
|
* string lang_code,
|
|
|
|
* int from_version,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return LangPackDifference
|
|
|
|
*/
|
|
|
|
public function getDifference(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string lang_pack,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Vector_of_LangPackLanguage
|
|
|
|
*/
|
|
|
|
public function getLanguages(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* string lang_pack,
|
|
|
|
* string lang_code,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return LangPackLanguage
|
|
|
|
*/
|
|
|
|
public function getLanguage(array $params);
|
2018-02-24 17:54:39 +01:00
|
|
|
}
|
2019-06-23 13:08:44 +02:00
|
|
|
|
|
|
|
interface folders
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* InputFolderPeer folder_peers,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function editPeerFolders(array $params);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array params [
|
|
|
|
* int folder_id,
|
|
|
|
* ]
|
|
|
|
*
|
|
|
|
* @return Updates
|
|
|
|
*/
|
|
|
|
public function deleteFolder(array $params);
|
|
|
|
}
|