MadelineProto/src/danog/MadelineProto/InternalDoc.php

5664 lines
162 KiB
PHP
Raw Normal View History

<?php
/**
* This file is automatic generated by build_docs.php file
* and is used only for autocomplete in multiple IDE
* don't modify manually.
*/
2018-02-24 17:54:39 +01:00
namespace danog\MadelineProto;
interface auth
{
/**
* Use phoneLogin instead.
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **phone_number** - Use phoneLogin instead
* * `int` **api_id** - Use phoneLogin instead
* * `string` **api_hash** - Use phoneLogin instead
* * `CodeSettings` **settings** - You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return auth.SentCode
*/
2019-09-18 20:46:20 +02:00
public function sendCode($params);
2018-02-24 17:54:39 +01:00
/**
* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **phone_number** - You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info)
* * `string` **phone_code_hash** - You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info)
* * `string` **first_name** - You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info)
* * `string` **last_name** - You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return auth.Authorization
*/
2019-09-18 20:46:20 +02:00
public function signUp($params);
2018-02-24 17:54:39 +01:00
/**
* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **phone_number** - You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info)
* * `string` **phone_code_hash** - You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info)
* * `string` **phone_code** - You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return auth.Authorization
*/
2019-09-18 20:46:20 +02:00
public function signIn($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info).
2019-09-18 20:46:20 +02:00
*
* @return bool
*/
public function logOut();
2018-02-24 17:54:39 +01:00
/**
2019-09-18 20:46:20 +02:00
* Delete all logged-in sessions.
*
* @return bool
*/
public function resetAuthorizations();
2018-02-24 17:54:39 +01:00
/**
* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `int` **dc_id** - You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return auth.ExportedAuthorization
*/
2019-09-18 20:46:20 +02:00
public function exportAuthorization($params);
2018-02-24 17:54:39 +01:00
/**
* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html.
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `int` **id** - You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html
* * `bytes` **bytes** - You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return auth.Authorization
*/
2019-09-18 20:46:20 +02:00
public function importAuthorization($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `long` **perm_auth_key_id** - You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info
* * `long` **nonce** - You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info
* * `int` **expires_at** - You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info
* * `bytes` **encrypted_message** - You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function bindTempAuthKey($params);
2018-02-24 17:54:39 +01:00
2019-06-05 15:38:32 +02:00
/**
* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `int` **api_id** - You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info)
* * `string` **api_hash** - You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info)
* * `string` **bot_auth_token** - You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return auth.Authorization
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function importBotAuthorization($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info).
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputCheckPasswordSRP` **password** - You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return auth.Authorization
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function checkPassword($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send an email to recover the 2FA password.
2019-09-18 20:46:20 +02:00
*
* @return auth.PasswordRecovery
2019-06-05 15:38:32 +02:00
*/
public function requestPasswordRecovery();
/**
2019-09-18 21:32:24 +02:00
* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **code** - The code that was emailed to you
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return auth.Authorization
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function recoverPassword($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Resend the SMS verification code.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **phone_number** - The phone number
2019-09-18 20:46:20 +02:00
* * `string` **phone_code_hash** - The phone code hash
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return auth.SentCode
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function resendCode($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Invalidate sent phone code.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **phone_number** - Phone number
2019-09-18 20:46:20 +02:00
* * `string` **phone_code_hash** - Phone code hash
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function cancelCode($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete all temporary authorization keys except the ones provided.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[long]` **except_auth_keys** - The temporary authorization keys to keep
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function dropTempAuthKeys($params);
}
2018-02-25 11:17:45 +01:00
interface account
{
/**
2019-09-18 21:32:24 +02:00
* Register device for push notifications.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **no_muted** - Optional: Idk yet
2019-09-18 20:46:20 +02:00
* * `int` **token_type** - Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone, 6 - Blackberry, and other, see source code of official apps for more info
2019-09-18 21:32:24 +02:00
* * `string` **token** - Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info
* * `Bool` **app_sandbox** - Should the app run in a sandbox?
* * `bytes` **secret** - Secret
* * `[int]` **other_uids** - Other UIDs
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function registerDevice($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Stop sending PUSH notifications to app.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **token_type** - Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info
* * `string` **token** - Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info
2019-09-18 21:32:24 +02:00
* * `[int]` **other_uids** - Other UIDs
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function unregisterDevice($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Change notification settings.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputNotifyPeer` **peer** - The peers to which the notification settings should be applied
2019-09-18 21:32:24 +02:00
* * `InputPeerNotifySettings` **settings** - Notification settings
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function updateNotifySettings($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Get notification settings.
*
* Parameters:
* * `InputNotifyPeer` **peer** - Notification source
2019-09-18 20:46:20 +02:00
*
* @param array $params Parameters
*
* @return PeerNotifySettings
*/
2019-09-18 20:46:20 +02:00
public function getNotifySettings($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Reset all notification settings.
2019-09-18 20:46:20 +02:00
*
* @return bool
*/
public function resetNotifySettings();
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Update profile info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **first_name** - Optional: The first name
* * `string` **last_name** - Optional: The last name
2019-09-18 20:46:20 +02:00
* * `string` **about** - Optional: The bio/about field
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return User
*/
2019-09-18 20:46:20 +02:00
public function updateProfile($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Update online status.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `Bool` **offline** - True to set the status to offline
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function updateStatus($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 20:46:20 +02:00
* Returns a list of available wallpapers.
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: IDs of previously fetched wallpapers
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return account.WallPapers
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getWallPapers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Report for spam.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - The peer to report
2019-09-18 20:46:20 +02:00
* * `ReportReason` **reason** - Why are you reporting this peer
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function reportPeer($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Check if this username is available.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **username** - The username to check
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function checkUsername($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Update this user's username.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **username** - The new username
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return User
*/
2019-09-18 20:46:20 +02:00
public function updateUsername($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Get privacy settings.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPrivacyKey` **key** - Privacy setting key
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return account.PrivacyRules
*/
2019-09-18 20:46:20 +02:00
public function getPrivacy($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Set privacy settings.
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPrivacyKey` **key** - Privacy setting
2019-09-18 20:46:20 +02:00
* * `[InputPrivacyRule]` **rules** - Privacy settings
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return account.PrivacyRules
*/
2019-09-18 20:46:20 +02:00
public function setPrivacy($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Delete this account.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **reason** - Why are you going away? :(
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function deleteAccount($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Get account TTL.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return AccountDaysTTL
*/
2019-06-05 15:38:32 +02:00
public function getAccountTTL();
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Set account TTL.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `AccountDaysTTL` **ttl** - Time To Live of account
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setAccountTTL($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Change the phone number.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **phone_number** - New phone number
2019-09-18 21:32:24 +02:00
* * `CodeSettings` **settings** - Code settings
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return auth.SentCode
*/
2019-09-18 20:46:20 +02:00
public function sendChangePhoneCode($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Change the phone number associated to this account.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **phone_number** - Phone number
2019-09-18 20:46:20 +02:00
* * `string` **phone_code_hash** - Phone code hash returned by account.sendChangePhoneCode
2019-09-18 21:32:24 +02:00
* * `string` **phone_code** - The phone code sent by account.sendChangePhoneCode
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return User
*/
2019-09-18 20:46:20 +02:00
public function changePhone($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Disable all notifications for a certain period.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **period** - For how long should notifications be disabled
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 12:04:36 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function updateDeviceLocked($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Get all logged-in authorizations.
2019-09-18 20:46:20 +02:00
*
* @return account.Authorizations
*/
2019-06-05 15:38:32 +02:00
public function getAuthorizations();
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Delete a certain session.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `long` **hash** - The session hash, obtained from $MadelineProto->account->getAuthorizations
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function resetAuthorization($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Get the current password.
2019-09-18 20:46:20 +02:00
*
* @return account.Password
*/
2019-06-05 15:38:32 +02:00
public function getPassword();
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Get the current 2FA settings.
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputCheckPasswordSRP` **password** - You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return account.PasswordSettings
*/
2019-09-18 20:46:20 +02:00
public function getPasswordSettings($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputCheckPasswordSRP` **password** - You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
* * `account_PasswordInputSettings` **new_settings** - New 2FA settings
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function updatePasswordSettings($params);
/**
2019-09-18 21:32:24 +02:00
* Send confirmation phone code.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **hash** - The hash
2019-09-18 20:46:20 +02:00
* * `CodeSettings` **settings** - Code settings
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return auth.SentCode
*/
2019-09-18 20:46:20 +02:00
public function sendConfirmPhoneCode($params);
/**
2019-09-18 21:32:24 +02:00
* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **phone_code_hash** - Obtain phone_code_hash from sendConfirmPhoneCode
2019-09-18 21:32:24 +02:00
* * `string` **phone_code** - The code sent by sendConfirmPhoneCode
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function confirmPhone($params);
/**
2019-09-18 21:32:24 +02:00
* Get temporary password for buying products through bots.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputCheckPasswordSRP` **password** - Password
2019-09-18 20:46:20 +02:00
* * `int` **period** - The validity period
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return account.TmpPassword
*/
2019-09-18 20:46:20 +02:00
public function getTmpPassword($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get telegram web login authorizations.
2019-09-18 20:46:20 +02:00
*
* @return account.WebAuthorizations
2019-06-05 15:38:32 +02:00
*/
public function getWebAuthorizations();
/**
2019-09-18 21:32:24 +02:00
* Delete a certain telegram web login authorization.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `long` **hash** - The authorization's hash
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function resetWebAuthorization($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Reset all telegram web login authorizations.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
public function resetWebAuthorizations();
/**
2019-09-18 21:32:24 +02:00
* Get all secure telegram passport values.
2019-09-18 20:46:20 +02:00
*
* @return _of_SecureValue[]
2019-06-05 15:38:32 +02:00
*/
public function getAllSecureValues();
/**
2019-09-18 21:32:24 +02:00
* Get secure value for telegram passport.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[SecureValueType]` **types** - Get telegram passport secure parameters
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return _of_SecureValue[]
*/
2019-09-18 20:46:20 +02:00
public function getSecureValue($params);
/**
2019-09-18 21:32:24 +02:00
* Save telegram passport secure value.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputSecureValue` **value** - Encrypted value
2019-09-18 21:32:24 +02:00
* * `long` **secure_secret_id** - Secret
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return SecureValue
*/
2019-09-18 20:46:20 +02:00
public function saveSecureValue($params);
/**
2019-09-18 21:32:24 +02:00
* Delete secure telegram passport value.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[SecureValueType]` **types** - The values to delete
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function deleteSecureValue($params);
/**
2019-09-18 21:32:24 +02:00
* Bots only: get telegram passport authorization form.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `int` **bot_id** - Bot ID
* * `string` **scope** - Scope
2019-09-18 20:46:20 +02:00
* * `string` **public_key** - Bot's public key
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return account.AuthorizationForm
*/
2019-09-18 20:46:20 +02:00
public function getAuthorizationForm($params);
/**
2019-09-18 21:32:24 +02:00
* Accept telegram passport authorization.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `int` **bot_id** - Bot ID
* * `string` **scope** - Scope
* * `string` **public_key** - The bot's RSA public key
2019-09-18 20:46:20 +02:00
* * `[SecureValueHash]` **value_hashes** - Hashes of the encrypted credentials
2019-09-18 21:32:24 +02:00
* * `SecureCredentialsEncrypted` **credentials** - Encrypted secure credentials
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function acceptAuthorization($params);
/**
2019-09-18 21:32:24 +02:00
* Send phone verification code.
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **phone_number** - The phone number
2019-09-18 21:32:24 +02:00
* * `CodeSettings` **settings** - Code settings
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return auth.SentCode
*/
2019-09-18 20:46:20 +02:00
public function sendVerifyPhoneCode($params);
/**
2019-09-18 21:32:24 +02:00
* Verify phone number.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **phone_number** - The phone number
2019-09-18 20:46:20 +02:00
* * `string` **phone_code_hash** - The phone code hash returned by account.sendVerifyPhoneCode
* * `string` **phone_code** - The phone code type returned by account.sendVerifyPhoneCode
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function verifyPhone($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-09-18 21:32:24 +02:00
* Send email verification 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
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **email** - Email
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @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-09-18 20:46:20 +02:00
public function sendVerifyEmailCode($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-09-18 21:32:24 +02:00
* Verify email address.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **email** - The email address
* * `string` **code** - The received code
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
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-09-18 20:46:20 +02:00
public function verifyEmail($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-09-18 21:32:24 +02:00
* Start account exporting session.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **contacts** - Optional: Export contacts?
* * `boolean` **message_users** - Optional: Export users?
* * `boolean` **message_chats** - Optional: Export chats?
* * `boolean` **message_megagroups** - Optional: Export supergroups?
* * `boolean` **message_channels** - Optional: Export channel messages?
* * `boolean` **files** - Optional: Export files?
2019-09-18 20:46:20 +02:00
* * `int` **file_max_size** - Optional: Export only files smaller than this size
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
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-09-18 20:46:20 +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-09-18 20:46:20 +02:00
public function initTakeoutSession($params);
2019-03-08 14:16:57 +01:00
/**
2019-09-18 21:32:24 +02:00
* Finish account exporting session.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **success** - Optional: Did the data export succeed?
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
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-09-18 20:46:20 +02:00
public function finishTakeoutSession($params);
2019-03-08 14:16:57 +01:00
/**
2019-09-18 21:32:24 +02:00
* Confirm password recovery using email.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **code** - Code
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
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-09-18 20:46:20 +02:00
public function confirmPasswordEmail($params);
2019-03-08 14:16:57 +01:00
/**
2019-09-18 21:32:24 +02:00
* Resend password recovery email.
2019-09-18 20:46:20 +02: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();
/**
2019-09-18 21:32:24 +02:00
* Cancel password recovery email.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
public function cancelPasswordEmail();
/**
2019-09-18 21:32:24 +02:00
* Contact signup notification setting value.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
public function getContactSignUpNotification();
2019-03-08 14:16:57 +01:00
/**
2019-09-18 21:32:24 +02:00
* Set contact sign up notification.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `Bool` **silent** - Silent?
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-03-08 14:16:57 +01:00
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setContactSignUpNotification($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Get notification exceptions.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **compare_sound** - Optional: Compare sound?
2019-09-18 21:32:24 +02:00
* * `InputNotifyPeer` **peer** - Optional: Peer
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function getNotifyExceptions($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Get wallpaper info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputWallPaper` **wallpaper** - Wallpaper
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return WallPaper
*/
2019-09-18 20:46:20 +02:00
public function getWallPaper($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Upload wallpaper.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputFile` **file** - Image
* * `string` **mime_type** - Mime type
2019-09-18 20:46:20 +02:00
* * `WallPaperSettings` **settings** - Wallpaper settings
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return WallPaper
*/
2019-09-18 20:46:20 +02:00
public function uploadWallPaper($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Save wallpaper.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputWallPaper` **wallpaper** - The wallpaper to save
2019-09-18 20:46:20 +02:00
* * `Bool` **unsave** - Delete saved wallpaper
2019-09-18 21:32:24 +02:00
* * `WallPaperSettings` **settings** - The wallpaper to save
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function saveWallPaper($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Install wallpaper.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputWallPaper` **wallpaper** - Wallpaper to install
2019-09-18 21:32:24 +02:00
* * `WallPaperSettings` **settings** - Wallpaper settings
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function installWallPaper($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Reset wallpapers.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
public function resetWallPapers();
/**
2019-09-18 21:32:24 +02:00
* Get autodownload settings.
2019-09-18 20:46:20 +02:00
*
* @return account.AutoDownloadSettings
2019-06-05 15:38:32 +02:00
*/
public function getAutoDownloadSettings();
/**
2019-09-18 21:32:24 +02:00
* Save autodownload settings.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **low** - Optional: Low preset
2019-09-18 20:46:20 +02:00
* * `boolean` **high** - Optional: High preset
* * `AutoDownloadSettings` **settings** - Autodownload settings
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function saveAutoDownloadSettings($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Upload theme.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputFile` **file** - File
2019-09-18 20:46:20 +02:00
* * `InputFile` **thumb** - Optional: Thumb
2019-09-18 21:32:24 +02:00
* * `string` **file_name** - File name
* * `string` **mime_type** - Mime type
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-09-12 19:08:48 +02:00
*
* @return Document
*/
2019-09-18 20:46:20 +02:00
public function uploadTheme($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Create a theme.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **slug** - Unique theme ID
2019-09-18 21:32:24 +02:00
* * `string` **title** - Theme name
* * `InputDocument` **document** - Theme file
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-09-12 19:08:48 +02:00
*
* @return Theme
*/
2019-09-18 20:46:20 +02:00
public function createTheme($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Update theme.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **format** - Theme format, a string that identifies the theming engines supported by the client
2019-09-18 21:32:24 +02:00
* * `InputTheme` **theme** - Theme to update
* * `string` **slug** - Optional: Unique theme ID
* * `string` **title** - Optional: Theme name
* * `InputDocument` **document** - Optional: Theme file
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-09-12 19:08:48 +02:00
*
* @return Theme
*/
2019-09-18 20:46:20 +02:00
public function updateTheme($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Save theme.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputTheme` **theme** - Theme to save
2019-09-18 21:32:24 +02:00
* * `Bool` **unsave** - Unsave
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-09-12 19:08:48 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function saveTheme($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Install theme.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **dark** - Optional: Whether to install the dark version
2019-09-18 21:32:24 +02:00
* * `string` **format** - Optional: Format
* * `InputTheme` **theme** - Optional: Theme to install
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-09-12 19:08:48 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function installTheme($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get theme information.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **format** - Theme format, a string that identifies the theming engines supported by the client
2019-09-18 21:32:24 +02:00
* * `InputTheme` **theme** - Theme
* * `long` **document_id** - Document ID
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-09-12 19:08:48 +02:00
*
* @return Theme
*/
2019-09-18 20:46:20 +02:00
public function getTheme($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get installed themes.
2019-09-12 19:08:48 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **format** - Theme format, a string that identifies the theming engines supported by the client
2019-09-18 21:32:24 +02:00
* * `[int]` **hash** - Optional: Hash for pagination
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return account.Themes
2019-09-12 19:08:48 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getThemes($params);
2019-06-05 15:38:32 +02:00
}
interface users
{
/**
2019-09-18 21:32:24 +02:00
* Get info about users.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[InputUser]` **id** - The ids of the users
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return _of_User[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getUsers($params);
2019-06-05 15:38:32 +02:00
/**
* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputUser` **id** - You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return UserFull
*/
2019-09-18 20:46:20 +02:00
public function getFullUser($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Set secure value error for telegram passport.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputUser` **id** - The user ID
2019-09-18 21:32:24 +02:00
* * `[SecureValueError]` **errors** - The errors
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setSecureValueErrors($params);
2019-06-05 15:38:32 +02:00
}
interface contacts
{
/**
2019-09-18 21:32:24 +02:00
* Get contacts by IDs.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: Previously fetched IDs
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return _of_int[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getContactIDs($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get online status of all users.
2019-09-18 20:46:20 +02:00
*
* @return _of_ContactStatus[]
2019-06-05 15:38:32 +02:00
*/
public function getStatuses();
/**
2019-09-18 21:32:24 +02:00
* Get all contacts.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: User IDs of previously cached contacts
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return contacts.Contacts
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getContacts($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Add phone number as contact.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[InputContact]` **contacts** - The numbers to import
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return contacts.ImportedContacts
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function importContacts($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete multiple contacts.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[InputUser]` **id** - The contacts to delete
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-06-24 15:46:38 +02:00
* @return Updates
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function deleteContacts($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete contacts by phones.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[string]` **phones** - Phones
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function deleteByPhones($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Block a user.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputUser` **id** - The user to block
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function block($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Unblock a user.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputUser` **id** - The user to unblock
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function unblock($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get blocked users.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **offset** - Initially 0, then set to the number of blocked contacts previously fetched
2019-09-18 21:32:24 +02:00
* * `int` **limit** - How many blocked contacts to fetch
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return contacts.Blocked
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getBlocked($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Search contacts.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **q** - The search query
2019-09-18 20:46:20 +02:00
* * `int` **limit** - How many results should be returned
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return contacts.Found
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function search($params);
2019-06-05 15:38:32 +02:00
/**
* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **username** - You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return contacts.ResolvedPeer
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function resolveUsername($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get most used chats.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **correspondents** - Optional: Fetch users?
* * `boolean` **bots_pm** - Optional: Fetch bots?
* * `boolean` **bots_inline** - Optional: Fetch inline bots?
* * `boolean` **phone_calls** - Optional: Fetch phone calls?
* * `boolean` **forward_users** - Optional: Forward users?
* * `boolean` **forward_chats** - Optional: Forward chats?
* * `boolean` **groups** - Optional: Fetch groups?
* * `boolean` **channels** - Optional: Fetch channels and supergroups?
2019-09-18 20:46:20 +02:00
* * `int` **offset** - Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];`
2019-09-18 21:32:24 +02:00
* * `int` **limit** - How many results to fetch
* * `[int]` **hash** - Optional: Peer IDs of previously cached peers
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return contacts.TopPeers
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getTopPeers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Reset top peer rating for a certain category/peer.
*
* Parameters:
* * `TopPeerCategory` **category** - The category
* * `InputPeer` **peer** - The peer
2019-09-18 20:46:20 +02:00
*
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function resetTopPeerRating($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Reset saved contacts.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
public function resetSaved();
/**
2019-09-18 21:32:24 +02:00
* Get saved contacts.
2019-09-18 20:46:20 +02:00
*
* @return _of_SavedContact[]
2019-06-05 15:38:32 +02:00
*/
public function getSaved();
/**
2019-09-18 21:32:24 +02:00
* Toggle top peers.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `Bool` **enabled** - Enable or disable top peer
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function toggleTopPeers($params);
2019-06-24 15:46:38 +02:00
/**
2019-09-18 21:32:24 +02:00
* Add contact.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **add_phone_privacy_exception** - Optional: Phone privacy exception?
2019-09-18 21:32:24 +02:00
* * `InputUser` **id** - ID
* * `string` **first_name** - First name
* * `string` **last_name** - Last name
* * `string` **phone** - Phone number
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-24 15:46:38 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function addContact($params);
2019-06-24 15:46:38 +02:00
/**
2019-09-18 21:32:24 +02:00
* Accept contact.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputUser` **id** - ID
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-24 15:46:38 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function acceptContact($params);
2019-06-24 15:46:38 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get people nearby (geochats).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputGeoPoint` **geo_point** - Current location
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-24 15:46:38 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function getLocated($params);
2019-06-05 15:38:32 +02:00
}
interface messages
{
/**
2019-09-18 21:32:24 +02:00
* Get messages.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[InputMessage]` **id** - The IDs of messages to fetch (only for users and normal groups)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.Messages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getMessages($params);
2019-06-05 15:38:32 +02:00
/**
* Gets list of chats: you should use $MadelineProto->getDialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **exclude_pinned** - Optional: Do not fetch pinned chats
* * `int` **folder_id** - Optional: Folder ID
* * `int` **offset_date** - End($res['messages'])['date'];
* * `int` **offset_id** - End($res['messages'])['id'];
* * `InputPeer` **offset_peer** - End($res['dialogs'])['peer'];
* * `int` **limit** - Number of dialogs to fetch
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: IDs of previously fetched dialogs
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Dialogs
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getDialogs($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get previous messages of a group.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - The chat
* * `int` **offset_id** - The last fetched message ID, initially 0
2019-09-18 20:46:20 +02:00
* * `int` **offset_date** - The date of the last previously fetched message, initially 0
2019-09-18 21:32:24 +02:00
* * `int` **add_offset** - Additional offset, can be 0
* * `int` **limit** - Number of messages to fetch
* * `int` **max_id** - Maximum message ID to fetch
* * `int` **min_id** - Minumum message ID to fetch
* * `[int]` **hash** - Optional: IDs of messages you already fetched
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Messages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getHistory($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Search peers or messages.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - Where to search
* * `string` **q** - What to search
2019-09-18 20:46:20 +02:00
* * `InputUser` **from_id** - Optional: Show only messages from a certain user?
2019-09-18 21:32:24 +02:00
* * `MessagesFilter` **filter** - Message filter
* * `int` **min_date** - Minumum date of results to fetch
* * `int` **max_date** - Maximum date of results to fetch
* * `int` **offset_id** - Message ID offset
* * `int` **add_offset** - Additional offset, can be 0
* * `int` **limit** - Number of results to return
* * `int` **max_id** - Maximum message id to return
* * `int` **min_id** - Minumum message id to return
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: The IDs of messages you already fetched
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.Messages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function search($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Mark messages as read.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - Where to mark messages as read
2019-09-18 20:46:20 +02:00
* * `int` **max_id** - Maximum message ID to mark as read
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.AffectedMessages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function readHistory($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete chat history.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **just_clear** - Optional: Only clear it from your side
2019-09-18 20:46:20 +02:00
* * `boolean` **revoke** - Optional: Delete messages for the other user
2019-09-18 21:32:24 +02:00
* * `InputPeer` **peer** - Where to clear it
* * `int` **max_id** - Maximum message id of messages to delete
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.AffectedHistory
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function deleteHistory($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete messages.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **revoke** - Optional: Delete the messages for everyone?
2019-09-18 20:46:20 +02:00
* * `[int]` **id** - IDs of messages to delete, use channels->deleteMessages for supergroups
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.AffectedMessages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function deleteMessages($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Mark messages as read.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **max_id** - Maximum message id of messages to mark as read
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return _of_ReceivedNotifyMessage[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function receivedMessages($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Change typing status.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - Where to change typing status
2019-09-18 21:32:24 +02:00
* * `SendMessageAction` **action** - Typing status
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setTyping($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send a message.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **no_webpage** - Optional: Disable webpage preview?
* * `boolean` **silent** - Optional: Disable notifications?
* * `boolean` **background** - Optional: Disable background notifications?
2019-09-18 20:46:20 +02:00
* * `boolean` **clear_draft** - Optional: Clear the message draft of this chat?
2019-09-18 21:32:24 +02:00
* * `InputPeer` **peer** - The chat where to send this message
* * `int` **reply_to_msg_id** - Optional: Reply to message by ID
* * `string` **message** - The message to send
* * `ReplyMarkup` **reply_markup** - Optional: Keyboards to send
* * `[MessageEntity]` **entities** - Optional: Entities to send (for styled text)
* * `int` **schedule_date** - Optional: Schedule date
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function sendMessage($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send a media.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **silent** - Optional: Disable notifications?
* * `boolean` **background** - Optional: Disable background notifications?
2019-09-18 20:46:20 +02:00
* * `boolean` **clear_draft** - Optional: Clear the message draft of this chat?
2019-09-18 21:32:24 +02:00
* * `InputPeer` **peer** - Where to send the media
* * `int` **reply_to_msg_id** - Optional: Reply to message by ID
* * `InputMedia` **media** - The media to send
* * `string` **message** - The caption
* * `ReplyMarkup` **reply_markup** - Optional: Keyboards to send
* * `[MessageEntity]` **entities** - Optional: Entities for styled text
* * `int` **schedule_date** - Optional: Schedule date
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function sendMedia($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Forward messages.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **silent** - Optional: Disable notifications
* * `boolean` **background** - Optional: Disable background notifications
2019-09-18 20:46:20 +02:00
* * `boolean` **with_my_score** - Optional: If forwarding a game, forward your score, too
2019-09-18 21:32:24 +02:00
* * `boolean` **grouped** - Optional: Set to true if forwarding albums
* * `InputPeer` **from_peer** - From where to forward the messages
* * `[int]` **id** - The message IDs
* * `InputPeer` **to_peer** - Where to forward the messages
* * `int` **schedule_date** - Optional: Schedule date
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function forwardMessages($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Report a peer for spam.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - The peer to report
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function reportSpam($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get the settings of apeer.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - The peer
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return PeerSettings
*/
2019-09-18 20:46:20 +02:00
public function getPeerSettings($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Report a message.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - The user that sent the messages
* * `[int]` **id** - The messages to report
2019-09-18 20:46:20 +02:00
* * `ReportReason` **reason** - The reason why you're sending this report
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function report($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get info about chats.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **id** - The MTProto IDs of chats to fetch info about
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Chats
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getChats($params);
2019-06-05 15:38:32 +02:00
/**
* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info).
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **chat_id** - You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.ChatFull
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getFullChat($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Edit the title of a normal chat (not supergroup).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **chat_id** - The ID of the chat
2019-09-18 21:32:24 +02:00
* * `string` **title** - The new title
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function editChatTitle($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Edit the photo of a normal chat (not supergroup).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **chat_id** - The ID of the chat
2019-09-18 21:32:24 +02:00
* * `InputChatPhoto` **photo** - The new phto
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function editChatPhoto($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Add a user to a normal chat (use channels->inviteToChannel for supergroups).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **chat_id** - The chat where to invite users
* * `InputUser` **user_id** - The user to invite
2019-09-18 20:46:20 +02:00
* * `int` **fwd_limit** - Number of old messages the user will see
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function addChatUser($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete a user from a chat (not supergroup).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **chat_id** - The ID of the chat
2019-09-18 20:46:20 +02:00
* * `InputUser` **user_id** - The user to delete (pass @me to leave the chat)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function deleteChatUser($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Create a chat (not supergroup).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[InputUser]` **users** - The users to add to the chat
2019-09-18 21:32:24 +02:00
* * `string` **title** - The new chat's title
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function createChat($params);
2018-02-24 17:54:39 +01:00
/**
* You cannot use this method directly, instead use $MadelineProto->getDhConfig();.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `int` **version** - You cannot use this method directly, instead use $MadelineProto->getDhConfig();
* * `int` **random_length** - You cannot use this method directly, instead use $MadelineProto->getDhConfig();
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.DhConfig
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getDhConfig($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputUser` **user_id** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats
* * `bytes` **g_a** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return EncryptedChat
*/
2019-09-18 20:46:20 +02:00
public function requestEncryption($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputEncryptedChat` **peer** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats
* * `bytes` **g_b** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats
* * `long` **key_fingerprint** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return EncryptedChat
*/
2019-09-18 20:46:20 +02:00
public function acceptEncryption($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **chat_id** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function discardEncryption($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send typing notification to secret chat.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputEncryptedChat` **peer** - The secret chat where to send the notification
2019-09-18 20:46:20 +02:00
* * `Bool` **typing** - Set to true to enable the notification, false to disable it
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setEncryptedTyping($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Mark messages as read in secret chats.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputEncryptedChat` **peer** - The secret chat where to mark messages as read
2019-09-18 21:32:24 +02:00
* * `int` **max_date** - Maximum date of messages to mark
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function readEncryptedHistory($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send message to secret chat.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputEncryptedChat` **peer** - The chat where to send the message
2019-09-18 21:32:24 +02:00
* * `DecryptedMessage` **message** - The message to send
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.SentEncryptedMessage
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function sendEncrypted($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send a file to a secret chat.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputEncryptedChat` **peer** - The chat where to send the file
2019-09-18 21:32:24 +02:00
* * `DecryptedMessage` **message** - The message with the file
* * `InputEncryptedFile` **file** - The file (optional)
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.SentEncryptedMessage
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function sendEncryptedFile($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send a service message to a secret chat.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputEncryptedChat` **peer** - The chat where to send the service message
2019-09-18 21:32:24 +02:00
* * `DecryptedMessage` **message** - The service message
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.SentEncryptedMessage
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function sendEncryptedService($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **max_qts** - You cannot use this method directly
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return _of_long[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function receivedQueue($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Report for spam a secret chat.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputEncryptedChat` **peer** - The chat to report
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function reportEncryptedSpam($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Mark message as read.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **id** - The messages to mark as read (only users and normal chats, not supergroups)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.AffectedMessages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function readMessageContents($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get stickers.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **emoticon** - Search by emoji
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: the hash parameter of the previous result of this method
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Stickers
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get all stickerpacks.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: The hash parameter of the previous result of this method
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.AllStickers
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getAllStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get webpage preview.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **message** - Extract preview from this message
2019-09-18 20:46:20 +02:00
* * `[MessageEntity]` **entities** - Optional: Entities for styled text
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return MessageMedia
*/
2019-09-18 20:46:20 +02:00
public function getWebPagePreview($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Export chat invite.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - Export invite only for this user
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return ExportedChatInvite
*/
2019-09-18 20:46:20 +02:00
public function exportChatInvite($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Check if an invitation link is valid.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **hash** - The invite link in t.me/joinchat/aflakf format
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return ChatInvite
*/
2019-09-18 20:46:20 +02:00
public function checkChatInvite($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Import chat invite.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **hash** - The invite link in t.me/joinchat/aflakf format
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function importChatInvite($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get a stickerset.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputStickerSet` **stickerset** - The stickerset to get
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.StickerSet
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getStickerSet($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Add a sticker set.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputStickerSet` **stickerset** - The sticker set to add
2019-09-18 21:32:24 +02:00
* * `Bool` **archived** - Archive this set?
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.StickerSetInstallResult
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function installStickerSet($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Remove a sticker set.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputStickerSet` **stickerset** - The sticker set to remove
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function uninstallStickerSet($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Start a bot.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputUser` **bot** - The bot's ID or username
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - Where to start the bot (@me or group ID/username)
2019-09-18 21:32:24 +02:00
* * `string` **start_param** - The bot's start parameter
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function startBot($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get and increase message views.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - The chat where the message is located
2019-09-18 21:32:24 +02:00
* * `[int]` **id** - The IDs messages to get
* * `Bool` **increment** - Increase message views?
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return _of_int[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getMessagesViews($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Edit admin permissions.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **chat_id** - The chat ID (no supergroups)
2019-09-18 21:32:24 +02:00
* * `InputUser` **user_id** - The user ID
* * `Bool` **is_admin** - Should the user be admin?
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function editChatAdmin($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Convert chat to supergroup.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **chat_id** - The chat to convert
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function migrateChat($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Global message search.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `int` **folder_id** - Optional: Folder ID
* * `string` **q** - The query
* * `int` **offset_rate** - Offset rate
* * `InputPeer` **offset_peer** - 0 or the peer offset
* * `int` **offset_id** - 0 or the message ID offset
2019-09-18 20:46:20 +02:00
* * `int` **limit** - The number of results to return
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.Messages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function searchGlobal($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Reorder sticker sets.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **masks** - Optional: Reorder masks?
2019-09-18 21:32:24 +02:00
* * `[long]` **order** - The order
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function reorderStickerSets($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get document by SHA256 hash.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `bytes` **sha256** - `hash('sha256', $filename, true);`
2019-09-18 21:32:24 +02:00
* * `int` **size** - The file size
* * `string` **mime_type** - The mime type of the file
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Document
*/
2019-09-18 20:46:20 +02:00
public function getDocumentByHash($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Search gifs.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **q** - The search query
2019-09-18 21:32:24 +02:00
* * `int` **offset** - The offset
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.FoundGifs
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function searchGifs($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get saved gifs.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: the hash parameter of the previous result of this method
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.SavedGifs
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getSavedGifs($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Save a GIF.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputDocument` **id** - The GIF to save
* * `Bool` **unsave** - Remove the gif?
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function saveGif($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Call inline bot.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputUser` **bot** - The bot to call
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - The chat where to call the bot
* * `InputGeoPoint` **geo_point** - Optional: The current location
2019-09-18 21:32:24 +02:00
* * `string` **query** - The query to send to the bot
* * `string` **offset** - The offset to send to the bot
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.BotResults
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getInlineBotResults($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Bots only: set the results of an inline query.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **gallery** - Optional: Is this a gallery?
2019-09-18 20:46:20 +02:00
* * `boolean` **private** - Optional: Is this result private (not cached)?
2019-09-18 21:32:24 +02:00
* * `long` **query_id** - Query ID
* * `[InputBotInlineResult]` **results** - Results
* * `int` **cache_time** - Cache time
* * `string` **next_offset** - Optional: The next offset
* * `InlineBotSwitchPM` **switch_pm** - Optional: Switch to PM?
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setInlineBotResults($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send inline bot result obtained with messages.getInlineBotResults to the chat.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **silent** - Optional: Disable notifications?
2019-09-18 20:46:20 +02:00
* * `boolean` **background** - Optional: Disable background notifications?
2019-09-18 21:32:24 +02:00
* * `boolean` **clear_draft** - Optional: Clear the message draft?
* * `boolean` **hide_via** - Optional: Hide "via @bot"
* * `InputPeer` **peer** - Where to send the message
* * `int` **reply_to_msg_id** - Optional: Reply to message by ID
* * `long` **query_id** - The inline query ID
* * `string` **id** - The ID of one of the inline results
* * `int` **schedule_date** - Optional: Schedule date
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function sendInlineBotResult($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Check if about to edit a message or a media caption.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - The chat
2019-09-18 20:46:20 +02:00
* * `int` **id** - The message ID
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.MessageEditData
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getMessageEditData($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Edit a message.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **no_webpage** - Optional: Disable webpage preview
* * `InputPeer` **peer** - The chat
* * `int` **id** - The message ID
* * `string` **message** - Optional: The new message
* * `InputMedia` **media** - Optional: The media to substitute
* * `ReplyMarkup` **reply_markup** - Optional: The new keyboard
2019-09-18 20:46:20 +02:00
* * `[MessageEntity]` **entities** - Optional: The new entities (for styled text)
2019-09-18 21:32:24 +02:00
* * `int` **schedule_date** - Optional: Schedule date
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function editMessage($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Edit a sent inline message.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **no_webpage** - Optional: Disable webpage preview
* * `InputBotInlineMessageID` **id** - The message ID
* * `string` **message** - Optional: The new message
* * `InputMedia` **media** - Optional: The media to substitute
* * `ReplyMarkup` **reply_markup** - Optional: The new keyboard
2019-09-18 20:46:20 +02:00
* * `[MessageEntity]` **entities** - Optional: The new entities (for styled text)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function editInlineBotMessage($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get the callback answer of a bot (after clicking a button).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **game** - Optional: Is this a game?
* * `InputPeer` **peer** - The chat
* * `int` **msg_id** - The message ID
2019-09-18 20:46:20 +02:00
* * `bytes` **data** - Optional: The data to send to the bot
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.BotCallbackAnswer
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getBotCallbackAnswer($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Bots only: set the callback answer (after a button was clicked).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **alert** - Optional: Is this an alert?
2019-09-18 21:32:24 +02:00
* * `long` **query_id** - The query ID
* * `string` **message** - Optional: The message
* * `string` **url** - Optional: The URL
* * `int` **cache_time** - Cache time
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setBotCallbackAnswer($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get dialog info of peers.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[InputDialogPeer]` **peers** - The peers
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.PeerDialogs
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getPeerDialogs($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Save a message draft.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **no_webpage** - Optional: Disable webpage preview
* * `int` **reply_to_msg_id** - Optional: Reply to message by ID
* * `InputPeer` **peer** - The chat
* * `string` **message** - The message
2019-09-18 20:46:20 +02:00
* * `[MessageEntity]` **entities** - Optional: The entities (for styled text)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function saveDraft($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get all message drafts.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return Updates
*/
public function getAllDrafts();
/**
2019-09-18 21:32:24 +02:00
* Get featured stickers.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: the hash parameter of the previous result of this method
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.FeaturedStickers
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getFeaturedStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Mark new featured stickers as read.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[long]` **id** - The stickers to mark as read
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function readFeaturedStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get recent stickers.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **attached** - Optional: Get stickers attached to image?
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: IDs the hash parameter of the previous result of this method
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.RecentStickers
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getRecentStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Add a sticker to recent stickers.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **attached** - Optional: Get stickers attached to image?
2019-09-18 21:32:24 +02:00
* * `InputDocument` **id** - The sticker
* * `Bool` **unsave** - Remove the sticker from recent stickers?
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function saveRecentSticker($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Clear all recent stickers.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **attached** - Optional: Clear recent stickers attached to images?
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function clearRecentStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get all archived stickers.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **masks** - Optional: Get masks?
* * `long` **offset_id** - Sticker ID offset
2019-09-18 20:46:20 +02:00
* * `int` **limit** - Number of stickers to fetch
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.ArchivedStickers
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getArchivedStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get masks.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: the hash parameter of the previous result of this method
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.AllStickers
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getMaskStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get stickers attachable to images.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputStickeredMedia` **media** - The stickered media
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return _of_StickerSetCovered[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getAttachedStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Set the game score.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **edit_message** - Optional: Should the message with the game be edited?
2019-09-18 21:32:24 +02:00
* * `boolean` **force** - Optional: Force setting the game score
* * `InputPeer` **peer** - The chat where the game was sent
* * `int` **id** - The message ID
* * `InputUser` **user_id** - The user that set the score
* * `int` **score** - The score
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function setGameScore($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Set the game score of an inline message.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **edit_message** - Optional: Should the message with the game be edited?
2019-09-18 21:32:24 +02:00
* * `boolean` **force** - Optional: Force setting the game score
* * `InputBotInlineMessageID` **id** - The ID of the inline message
* * `InputUser` **user_id** - The user that set the score
* * `int` **score** - The score
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setInlineGameScore($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get high scores of a game.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - The chat
* * `int` **id** - The message ID
2019-09-18 20:46:20 +02:00
* * `InputUser` **user_id** - The user that set the high scores
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.HighScores
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getGameHighScores($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get high scores of a game sent in an inline message.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputBotInlineMessageID` **id** - The inline message
2019-09-18 20:46:20 +02:00
* * `InputUser` **user_id** - The user that set the high scores
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.HighScores
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getInlineGameHighScores($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get chats in common with a user.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputUser` **user_id** - The user
2019-09-18 20:46:20 +02:00
* * `int` **max_id** - The maximum chat ID to fetch
2019-09-18 21:32:24 +02:00
* * `int` **limit** - Number of results to fetch
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.Chats
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getCommonChats($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get all chats (not supergroups or channels).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **except_ids** - Do not fetch these chats (MTProto id)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Chats
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getAllChats($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get webpage preview.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **url** - URL
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: the hash parameter of the previous result of this method
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return WebPage
*/
2019-09-18 20:46:20 +02:00
public function getWebPage($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Pin or unpin dialog.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **pinned** - Optional: Pin or unpin the dialog?
2019-09-18 21:32:24 +02:00
* * `InputDialogPeer` **peer** - The dialog to pin
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function toggleDialogPin($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Reorder pinned dialogs.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **force** - Optional: Force reordering
2019-09-18 21:32:24 +02:00
* * `int` **folder_id** - Folder ID
* * `[InputDialogPeer]` **order** - New order
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function reorderPinnedDialogs($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get pinned dialogs.
2019-06-23 13:08:44 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **folder_id** - Folder ID
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.PeerDialogs
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getPinnedDialogs($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Bots only: set shipping results.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `long` **query_id** - Query ID
* * `string` **error** - Optional: Error
2019-09-18 20:46:20 +02:00
* * `[ShippingOption]` **shipping_options** - Optional: Shipping options
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setBotShippingResults($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Bots only: set precheckout results.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **success** - Optional: Success?
2019-09-18 21:32:24 +02:00
* * `long` **query_id** - Query ID
* * `string` **error** - Optional: Error
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setBotPrecheckoutResults($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Upload a file without sending it to anyone.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - Nothing
2019-09-18 20:46:20 +02:00
* * `InputMedia` **media** - The media to upload
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return MessageMedia
*/
2019-09-18 20:46:20 +02:00
public function uploadMedia($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send screenshot notification.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - Where to send the notification
2019-09-18 21:32:24 +02:00
* * `int` **reply_to_msg_id** - Reply to message by ID
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function sendScreenshotNotification($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get favorite stickers.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: the hash parameter of the previous result of this method
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.FavedStickers
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getFavedStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Add a sticker to favorites.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputDocument` **id** - The sticker to add to favorites
2019-09-18 21:32:24 +02:00
* * `Bool` **unfave** - Remove it from favorites?
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function faveSticker($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get unread mentions.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - The chat where to get unread mentions
2019-09-18 21:32:24 +02:00
* * `int` **offset_id** - The offset
* * `int` **add_offset** - The additional offset
* * `int` **limit** - The number of results to fetch
* * `int` **max_id** - The maximum message ID to fetch
* * `int` **min_id** - The minumum message ID to fetch
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.Messages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getUnreadMentions($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Mark mentions as read.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - The chat
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.AffectedHistory
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function readMentions($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get recent locations.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - The chat where to search locations
* * `int` **limit** - Number of results to return
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: IDs of locations you already fetched
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Messages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getRecentLocations($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send an album.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **silent** - Optional: Disable notifications?
2019-09-18 20:46:20 +02:00
* * `boolean` **background** - Optional: Disable background notification?
2019-09-18 21:32:24 +02:00
* * `boolean` **clear_draft** - Optional: Clear draft?
* * `InputPeer` **peer** - Where to send the album
* * `int` **reply_to_msg_id** - Optional: Reply to message by ID
* * `[InputSingleMedia]` **multi_media** - The album
* * `int` **schedule_date** - Optional: Schedule date
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function sendMultiMedia($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Upload a secret chat file without sending it to anyone.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputEncryptedChat` **peer** - The chat where to upload the media
2019-09-18 21:32:24 +02:00
* * `InputEncryptedFile` **file** - The file
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return EncryptedFile
*/
2019-09-18 20:46:20 +02:00
public function uploadEncryptedFile($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Find a sticker set.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **exclude_featured** - Optional: Exclude featured sticker sets from the search?
2019-09-18 21:32:24 +02:00
* * `string` **q** - The search query
* * `[int]` **hash** - Optional: The IDs of stickersets you already fetched
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.FoundStickerSets
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function searchStickerSets($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get message ranges to fetch.
2019-09-18 20:46:20 +02:00
*
* @return _of_MessageRange[]
2019-06-05 15:38:32 +02:00
*/
public function getSplitRanges();
/**
2019-09-18 21:32:24 +02:00
* Mark dialog as unread.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **unread** - Optional: Should it be marked or unmarked as read
2019-09-18 21:32:24 +02:00
* * `InputDialogPeer` **peer** - The dialog to mark as unread
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function markDialogUnread($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get dialogs marked as unread manually.
2019-09-18 20:46:20 +02:00
*
* @return _of_DialogPeer[]
2019-06-05 15:38:32 +02:00
*/
public function getDialogUnreadMarks();
/**
2019-09-18 21:32:24 +02:00
* Clear all drafts.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
public function clearAllDrafts();
/**
2019-09-18 21:32:24 +02:00
* Update pinned message.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **silent** - Optional: Silent?
2019-09-18 21:32:24 +02:00
* * `InputPeer` **peer** - Peer
* * `int` **id** - Message ID
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function updatePinnedMessage($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send vote.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - Peer
2019-09-18 20:46:20 +02:00
* * `int` **msg_id** - Message ID
2019-09-18 21:32:24 +02:00
* * `[bytes]` **options** - Options
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function sendVote($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get poll results.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - Peer
2019-09-18 20:46:20 +02:00
* * `int` **msg_id** - Message ID
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function getPollResults($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get online users.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - Peer
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return ChatOnlines
*/
2019-09-18 20:46:20 +02:00
public function getOnlines($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get stats URL.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **dark** - Optional: Dark?
2019-09-18 21:32:24 +02:00
* * `InputPeer` **peer** - Peer
* * `string` **params** - Params
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return StatsURL
*/
2019-09-18 20:46:20 +02:00
public function getStatsURL($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Edit chat info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - Chat
* * `string` **about** - Info
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function editChatAbout($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Edit default rights of chat.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - Chat
2019-09-18 20:46:20 +02:00
* * `ChatBannedRights` **banned_rights** - Global chat rights
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function editChatDefaultBannedRights($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get emoji keywords.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **lang_code** - Language code
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return EmojiKeywordsDifference
*/
2019-09-18 20:46:20 +02:00
public function getEmojiKeywords($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get emoji keyword difference.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **lang_code** - Language code
2019-09-18 21:32:24 +02:00
* * `int` **from_version** - From version
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return EmojiKeywordsDifference
*/
2019-09-18 20:46:20 +02:00
public function getEmojiKeywordsDifference($params);
2019-06-05 15:38:32 +02:00
2019-06-23 13:08:44 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get emoji keyword languages.
2019-06-23 13:08:44 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[string]` **lang_codes** - Language codes
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return _of_EmojiLanguage[]
2019-06-23 13:08:44 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getEmojiKeywordsLanguages($params);
2019-06-23 13:08:44 +02:00
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get emoji URL.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **lang_code** - Language code
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return EmojiURL
*/
2019-09-18 20:46:20 +02:00
public function getEmojiURL($params);
2019-06-23 13:08:44 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get search counter.
2019-06-23 13:08:44 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - Peer
2019-09-18 20:46:20 +02:00
* * `[MessagesFilter]` **filters** - Filters
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return _of_messages.SearchCounter[]
2019-06-23 13:08:44 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getSearchCounters($params);
2019-06-23 13:08:44 +02:00
/**
2019-09-18 21:32:24 +02:00
* Request URL authorization.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - Peer
2019-09-18 20:46:20 +02:00
* * `int` **msg_id** - Message ID
2019-09-18 21:32:24 +02:00
* * `int` **button_id** - Button ID
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-23 13:08:44 +02:00
*
* @return UrlAuthResult
*/
2019-09-18 20:46:20 +02:00
public function requestUrlAuth($params);
2019-06-23 13:08:44 +02:00
/**
2019-09-18 21:32:24 +02:00
* Accept URL authorization.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **write_allowed** - Optional: Write allowed?
2019-09-18 21:32:24 +02:00
* * `InputPeer` **peer** - Peer
* * `int` **msg_id** - Message ID
* * `int` **button_id** - Button ID
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-23 13:08:44 +02:00
*
* @return UrlAuthResult
*/
2019-09-18 20:46:20 +02:00
public function acceptUrlAuth($params);
2019-06-24 15:46:38 +02:00
/**
2019-09-18 21:32:24 +02:00
* Hide peer settings bar.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - Peer
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-24 15:46:38 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function hidePeerSettingsBar($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get scheduled history.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPeer` **peer** - Peer
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: Hash
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-09-12 19:08:48 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Messages
2019-09-12 19:08:48 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getScheduledHistory($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get scheduled messages.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - Peer
2019-09-18 21:32:24 +02:00
* * `[int]` **id** - ID
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-09-12 19:08:48 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Messages
2019-09-12 19:08:48 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getScheduledMessages($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Send scheduled messages.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - Peer
2019-09-18 21:32:24 +02:00
* * `[int]` **id** - ID
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-09-12 19:08:48 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function sendScheduledMessages($params);
2019-09-12 19:08:48 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete scheduled messages.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPeer` **peer** - Peer
2019-09-18 21:32:24 +02:00
* * `[int]` **id** - ID
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-09-12 19:08:48 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function deleteScheduledMessages($params);
2019-06-05 15:38:32 +02:00
}
interface updates
{
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates.
2019-09-18 20:46:20 +02:00
*
* @return updates.State
2019-06-05 15:38:32 +02:00
*/
public function getState();
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `int` **pts** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates
2019-09-18 20:46:20 +02:00
* * `int` **pts_total_limit** - Optional: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates
2019-09-18 21:32:24 +02:00
* * `int` **date** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates
* * `int` **qts** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return updates.Difference
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getDifference($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **force** - Optional: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates
2019-09-18 21:32:24 +02:00
* * `InputChannel` **channel** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates
* * `ChannelMessagesFilter` **filter** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates
* * `int` **pts** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates
* * `int` **limit** - You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return updates.ChannelDifference
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getChannelDifference($params);
2019-06-05 15:38:32 +02:00
}
interface photos
{
/**
2019-09-18 21:32:24 +02:00
* Change the profile photo.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPhoto` **id** - The photo to use
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return UserProfilePhoto
*/
2019-09-18 20:46:20 +02:00
public function updateProfilePhoto($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Upload profile photo.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputFile` **file** - The photo
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return photos.Photo
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function uploadProfilePhoto($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete profile photos.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[InputPhoto]` **id** - The profile photos to delete
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return _of_long[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function deletePhotos($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get the profile photos of a user.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputUser` **user_id** - The user
* * `int` **offset** - Offset
2019-09-18 20:46:20 +02:00
* * `long` **max_id** - Maximum ID of photo to return
2019-09-18 21:32:24 +02:00
* * `int` **limit** - Number of photos to return
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return photos.Photos
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getUserPhotos($params);
2019-06-05 15:38:32 +02:00
}
interface upload
{
/**
* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `long` **file_id** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `int` **file_part** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `bytes` **bytes** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function saveFilePart($params);
2019-06-05 15:38:32 +02:00
/**
* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **precise** - Optional: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `InputFileLocation` **location** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `int` **offset** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `int` **limit** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return upload.File
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getFile($params);
2019-06-05 15:38:32 +02:00
/**
* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `long` **file_id** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `int` **file_part** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `int` **file_total_parts** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `bytes` **bytes** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function saveBigFilePart($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Download a file through telegram.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputWebFileLocation` **location** - The file
* * `int` **offset** - The offset in bytes
2019-09-18 20:46:20 +02:00
* * `int` **limit** - The number of bytes to fetch
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return upload.WebFile
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getWebFile($params);
2019-06-05 15:38:32 +02:00
/**
* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `bytes` **file_token** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `int` **offset** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `int` **limit** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return upload.CdnFile
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getCdnFile($params);
2019-06-05 15:38:32 +02:00
/**
* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `bytes` **file_token** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `bytes` **request_token** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return _of_FileHash[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function reuploadCdnFile($params);
2019-06-05 15:38:32 +02:00
/**
* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `bytes` **file_token** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
* * `int` **offset** - You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return _of_FileHash[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getCdnFileHashes($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get file hashes.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputFileLocation` **location** - The file
2019-09-18 21:32:24 +02:00
* * `int` **offset** - Offset
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return _of_FileHash[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getFileHashes($params);
2019-06-05 15:38:32 +02:00
}
interface help
{
/**
2019-09-18 21:32:24 +02:00
* Get server configuration.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return Config
*/
public function getConfig();
/**
2019-09-18 21:32:24 +02:00
* Get nearest datacenter.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return NearestDc
*/
public function getNearestDc();
/**
2019-09-18 21:32:24 +02:00
* Get info about app updates.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **source** - Source
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return help.AppUpdate
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getAppUpdate($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get invitation text.
2019-09-18 20:46:20 +02:00
*
* @return help.InviteText
2019-06-05 15:38:32 +02:00
*/
public function getInviteText();
/**
2019-09-18 21:32:24 +02:00
* Get info of support user.
2019-09-18 20:46:20 +02:00
*
* @return help.Support
2019-06-05 15:38:32 +02:00
*/
public function getSupport();
/**
2019-09-18 21:32:24 +02:00
* Get the changelog of this app.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **prev_app_version** - Previous app version
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function getAppChangelog($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Set the update status of webhook.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **pending_updates_count** - Pending update count
2019-09-18 21:32:24 +02:00
* * `string` **message** - Message
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setBotUpdatesStatus($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get CDN configuration.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return CdnConfig
*/
public function getCdnConfig();
/**
2019-09-18 21:32:24 +02:00
* Get recent t.me URLs.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **referer** - Referrer
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return help.RecentMeUrls
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getRecentMeUrls($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get information about the current proxy.
2019-09-18 20:46:20 +02:00
*
* @return help.ProxyData
2019-06-05 15:38:32 +02:00
*/
public function getProxyData();
/**
2019-09-18 21:32:24 +02:00
* Get updated TOS.
2019-09-18 20:46:20 +02:00
*
* @return help.TermsOfServiceUpdate
2019-06-05 15:38:32 +02:00
*/
public function getTermsOfServiceUpdate();
/**
2019-09-18 21:32:24 +02:00
* Accept telegram's TOS.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `DataJSON` **id** - TOS
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function acceptTermsOfService($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get deep link info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **path** - Deep link
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return help.DeepLinkInfo
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getDeepLinkInfo($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get app config.
2019-09-18 20:46:20 +02:00
*
2019-06-05 15:38:32 +02:00
* @return JSONValue
*/
public function getAppConfig();
/**
2019-09-18 21:32:24 +02:00
* Log data for developer of this app.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[InputAppEvent]` **events** - Event list
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function saveAppLog($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get passport config.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: Hash
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return help.PassportConfig
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getPassportConfig($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get support name.
2019-09-18 20:46:20 +02:00
*
* @return help.SupportName
2019-06-05 15:38:32 +02:00
*/
public function getSupportName();
/**
2019-09-18 21:32:24 +02:00
* Get user info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputUser` **user_id** - User ID
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return help.UserInfo
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getUserInfo($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Edit user info.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputUser` **user_id** - User ID
* * `string` **message** - Message
2019-09-18 20:46:20 +02:00
* * `[MessageEntity]` **entities** - Entities
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return help.UserInfo
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function editUserInfo($params);
2019-06-05 15:38:32 +02:00
}
interface channels
{
/**
2019-09-18 21:32:24 +02:00
* Mark channel/supergroup history as read.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 20:46:20 +02:00
* * `int` **max_id** - Maximum message ID to mark as read
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function readHistory($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete channel/supergroup messages.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 20:46:20 +02:00
* * `[int]` **id** - The IDs of messages to delete
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.AffectedMessages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function deleteMessages($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete all messages of a user in a channel/supergroup.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 21:32:24 +02:00
* * `InputUser` **user_id** - The user
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.AffectedHistory
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function deleteUserHistory($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Report a message in a supergroup/channel for spam.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel
2019-09-18 20:46:20 +02:00
* * `InputUser` **user_id** - The user that sent the messages
2019-09-18 21:32:24 +02:00
* * `[int]` **id** - The IDs of messages to report
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function reportSpam($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get channel/supergroup messages.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 21:32:24 +02:00
* * `[InputMessage]` **id** - The message IDs
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Messages
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getMessages($params);
2019-06-05 15:38:32 +02:00
/**
* Get channel/supergroup participants (you should use `$MadelineProto->getPwrChat($id)` instead).
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel
* * `ChannelParticipantsFilter` **filter** - Member filter
* * `int` **offset** - Offset
* * `int` **limit** - Limit
2019-09-18 20:46:20 +02:00
* * `[int]` **hash** - Optional: IDs of previously fetched participants
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return channels.ChannelParticipants
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getParticipants($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get info about a certain channel/supergroup participant.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 20:46:20 +02:00
* * `InputUser` **user_id** - The user to fetch info about
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return channels.ChannelParticipant
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getParticipant($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get info about multiple channels/supergroups.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[InputChannel]` **id** - The channel/supergroup MTProto IDs
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return messages.Chats
*/
2019-09-18 20:46:20 +02:00
public function getChannels($params);
2018-02-24 17:54:39 +01:00
/**
* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info).
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.ChatFull
*/
2019-09-18 20:46:20 +02:00
public function getFullChannel($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Create channel/supergroup.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **broadcast** - Optional: Set this to true to create a channel
2019-09-18 20:46:20 +02:00
* * `boolean` **megagroup** - Optional: Set this to true to create a supergroup
2019-09-18 21:32:24 +02:00
* * `string` **title** - Supergroup/channel title
* * `string` **about** - About text
* * `InputGeoPoint` **geo_point** - Optional: Geopoint (geochats)
* * `string` **address** - Optional: Physical address (geochats)
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function createChannel($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Edit admin permissions of a user in a channel/supergroup.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel
* * `InputUser` **user_id** - The user
* * `ChatAdminRights` **admin_rights** - Admin rights
2019-09-18 20:46:20 +02:00
* * `string` **rank** - Admin rank, an arbitrary string
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function editAdmin($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Edit the title of a supergroup/channel.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel
2019-09-18 20:46:20 +02:00
* * `string` **title** - The new channel/supergroup title
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function editTitle($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Edit the photo of a supergroup/channel.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel
2019-09-18 20:46:20 +02:00
* * `InputChatPhoto` **photo** - The new photo
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function editPhoto($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Check if this username is free and can be assigned to a channel/supergroup.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 20:46:20 +02:00
* * `string` **username** - The new username for this channel/supergroup
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function checkUsername($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Update the username of a supergroup/channel.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 21:32:24 +02:00
* * `string` **username** - The new username
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 12:04:36 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function updateUsername($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Join a channel/supergroup.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **channel** - The channel/supergroup to join
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function joinChannel($params);
2018-02-24 17:54:39 +01:00
2017-06-30 15:36:33 +02:00
/**
2019-09-18 21:32:24 +02:00
* Leave a channel/supergroup.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **channel** - The channel/supergroup to leave
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
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-09-18 20:46:20 +02:00
public function leaveChannel($params);
2018-02-24 17:54:39 +01:00
2017-06-30 15:36:33 +02:00
/**
2019-09-18 21:32:24 +02:00
* Add users to channel/supergroup.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 21:32:24 +02:00
* * `[InputUser]` **users** - The users to add
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
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-09-18 20:46:20 +02:00
public function inviteToChannel($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Delete a channel/supergroup.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **channel** - The channel/supergroup to delete
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function deleteChannel($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Get the link of a message in a channel.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 21:32:24 +02:00
* * `int` **id** - The ID of the message
* * `Bool` **grouped** - Is this an album?
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return ExportedMessageLink
*/
2019-09-18 20:46:20 +02:00
public function exportMessageLink($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Toggle channel signatures.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 20:46:20 +02:00
* * `Bool` **enabled** - Enable or disable channel signatures?
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function toggleSignatures($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get all supergroups/channels where you're admin.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **by_location** - Optional: Get channels by location
2019-09-18 21:32:24 +02:00
* * `boolean` **check_limit** - Optional: Check limit
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-24 15:46:38 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Chats
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getAdminedPublicChannels($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Kick or ban a user from a channel/supergroup.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 21:32:24 +02:00
* * `InputUser` **user_id** - The user to kick/ban
* * `ChatBannedRights` **banned_rights** - Banned rights
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function editBanned($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get admin log of a channel/supergroup.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel/supergroup
* * `string` **q** - Search query
* * `ChannelAdminLogEventsFilter` **events_filter** - Optional: Event filter
2019-09-18 20:46:20 +02:00
* * `[InputUser]` **admins** - Optional: Fetch only actions from these admins
2019-09-18 21:32:24 +02:00
* * `long` **max_id** - Maximum message ID to fetch
* * `long` **min_id** - Minimum message ID to fetch
* * `int` **limit** - Number of results to fetch
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return channels.AdminLogResults
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getAdminLog($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Set the supergroup/channel stickerpack.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **channel** - The channel/supergoup
2019-09-18 21:32:24 +02:00
* * `InputStickerSet` **stickerset** - The stickerset
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setStickers($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Mark channel/supergroup messages as read.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel
2019-09-18 20:46:20 +02:00
* * `[int]` **id** - List of message IDs
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function readMessageContents($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete the history of a supergroup/channel.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 20:46:20 +02:00
* * `int` **max_id** - Maximum message ID to delete
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function deleteHistory($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Enable or disable hidden history for new channel/supergroup users.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - The channel/supergroup
2019-09-18 20:46:20 +02:00
* * `Bool` **enabled** - Enable or disable hidden history for new channel/supergroup users
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function togglePreHistoryHidden($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get all channels you left.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **offset** - Offset
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.Chats
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getLeftChannels($params);
2019-06-23 13:08:44 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get groups for discussion.
2019-09-18 20:46:20 +02:00
*
* @return messages.Chats
2019-06-23 13:08:44 +02:00
*/
public function getGroupsForDiscussion();
/**
2019-09-18 21:32:24 +02:00
* Set discussion group of channel.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputChannel` **broadcast** - The channel
2019-09-18 21:32:24 +02:00
* * `InputChannel` **group** - The group
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-23 13:08:44 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function setDiscussionGroup($params);
2019-06-24 15:46:38 +02:00
/**
2019-09-18 21:32:24 +02:00
* Edit creator of channel.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - Channel
* * `InputUser` **user_id** - User ID
2019-09-18 20:46:20 +02:00
* * `InputCheckPasswordSRP` **password** - Password
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-24 15:46:38 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function editCreator($params);
2019-06-24 15:46:38 +02:00
/**
2019-09-18 21:32:24 +02:00
* Edit location (geochats).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputChannel` **channel** - Channel
* * `InputGeoPoint` **geo_point** - Geo point
2019-09-18 20:46:20 +02:00
* * `string` **address** - Physical location (geochats)
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-24 15:46:38 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function editLocation($params);
2019-08-15 20:33:07 +02:00
/**
2019-09-18 21:32:24 +02:00
* Toggle slow mode.
*
* Parameters:
* * `InputChannel` **channel** - Supergroup
* * `int` **seconds** - Users will only be able to send one message every `seconds` seconds, `0` to disable the limitation
2019-09-18 20:46:20 +02:00
*
* @param array $params Parameters
2019-08-15 20:33:07 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function toggleSlowMode($params);
}
2018-02-25 11:17:45 +01:00
2019-06-05 15:38:32 +02:00
interface bots
{
/**
2019-09-18 21:32:24 +02:00
* Send a custom request to the bot API.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **custom_method** - The method to call
2019-09-18 21:32:24 +02:00
* * `DataJSON` **params** - Method parameters
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return DataJSON
*/
2019-09-18 20:46:20 +02:00
public function sendCustomRequest($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Send webhook request via bot API.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `long` **query_id** - The query ID
2019-09-18 20:46:20 +02:00
* * `DataJSON` **data** - The parameters
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-06-05 15:38:32 +02:00
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function answerWebhookJSONQuery($params);
}
2018-02-25 11:17:45 +01:00
2019-06-05 15:38:32 +02:00
interface payments
{
/**
2019-09-18 21:32:24 +02:00
* Get payment form.
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **msg_id** - Message ID
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return payments.PaymentForm
*/
2019-09-18 20:46:20 +02:00
public function getPaymentForm($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Get payment receipt.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **msg_id** - The message ID
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return payments.PaymentReceipt
*/
2019-09-18 20:46:20 +02:00
public function getPaymentReceipt($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Validate requested payment info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **save** - Optional: Save payment info?
2019-09-18 21:32:24 +02:00
* * `int` **msg_id** - The message ID
* * `PaymentRequestedInfo` **info** - The requested payment info
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return payments.ValidatedRequestedInfo
*/
2019-09-18 20:46:20 +02:00
public function validateRequestedInfo($params);
2018-02-25 11:17:45 +01:00
2017-06-30 15:36:33 +02:00
/**
2019-09-18 21:32:24 +02:00
* Bots only: send payment form.
2017-06-30 15:36:33 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `int` **msg_id** - Message ID
2019-09-18 20:46:20 +02:00
* * `string` **requested_info_id** - Optional: ID of requested info
2019-09-18 21:32:24 +02:00
* * `string` **shipping_option_id** - Optional: Shipping option ID
* * `InputPaymentCredentials` **credentials** - Payment credentials
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return payments.PaymentResult
2017-06-30 15:36:33 +02:00
*/
2019-09-18 20:46:20 +02:00
public function sendPaymentForm($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get saved payments info.
2019-09-18 20:46:20 +02:00
*
* @return payments.SavedInfo
2019-06-05 15:38:32 +02:00
*/
public function getSavedInfo();
/**
2019-09-18 21:32:24 +02:00
* Clear saved payments info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **credentials** - Optional: Clear credentials?
2019-09-18 20:46:20 +02:00
* * `boolean` **info** - Optional: Clear payment info?
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function clearSavedInfo($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
{
/**
2019-09-18 21:32:24 +02:00
* Create stickerset.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `boolean` **masks** - Optional: Masks?
2019-09-18 20:46:20 +02:00
* * `InputUser` **user_id** - The user ID associated to this stickerset
2019-09-18 21:32:24 +02:00
* * `string` **title** - The stickerset title
* * `string` **short_name** - The stickerset short name
* * `[InputStickerSetItem]` **stickers** - The stickers to add
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return messages.StickerSet
*/
2019-09-18 20:46:20 +02:00
public function createStickerSet($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Remove sticker from stickerset.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputDocument` **sticker** - The sticker to remove
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
2019-09-18 20:46:20 +02:00
* @return messages.StickerSet
*/
2019-09-18 20:46:20 +02:00
public function removeStickerFromSet($params);
2018-02-24 17:54:39 +01:00
/**
2019-09-18 21:32:24 +02:00
* Change sticker position in photo.
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputDocument` **sticker** - The sticker
2019-09-18 20:46:20 +02:00
* * `int` **position** - New position
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return messages.StickerSet
*/
2019-09-18 20:46:20 +02:00
public function changeStickerPosition($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Add sticker to stickerset.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputStickerSet` **stickerset** - The stickerset
2019-09-18 21:32:24 +02:00
* * `InputStickerSetItem` **sticker** - The sticker
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return messages.StickerSet
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function addStickerToSet($params);
}
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-09-18 21:32:24 +02:00
* Get call configuration.
2019-09-18 20:46:20 +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-09-18 21:32:24 +02:00
* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **video** - Optional: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
2019-09-18 21:32:24 +02:00
* * `InputUser` **user_id** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
* * `bytes` **g_a_hash** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
* * `PhoneCallProtocol` **protocol** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return phone.PhoneCall
2017-06-30 15:36:33 +02:00
*/
2019-09-18 20:46:20 +02:00
public function requestCall($params);
2018-02-24 17:54:39 +01:00
2017-06-30 15:36:33 +02:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPhoneCall` **peer** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
* * `bytes` **g_b** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
* * `PhoneCallProtocol` **protocol** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2017-06-30 15:36:33 +02:00
*
2019-09-18 20:46:20 +02:00
* @return phone.PhoneCall
2017-06-30 15:36:33 +02:00
*/
2019-09-18 20:46:20 +02:00
public function acceptCall($params);
2018-02-24 17:54:39 +01:00
2017-06-30 15:36:33 +02:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPhoneCall` **peer** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
* * `bytes` **g_a** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
* * `long` **key_fingerprint** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
* * `PhoneCallProtocol` **protocol** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
2019-09-18 20:46:20 +02:00
* @return phone.PhoneCall
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function confirmCall($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Notify server that you received a call (server will refuse all incoming calls until the current call is over).
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `InputPhoneCall` **peer** - The phone call you received
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
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-09-18 20:46:20 +02:00
public function receivedCall($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **video** - Optional: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
2019-09-18 21:32:24 +02:00
* * `InputPhoneCall` **peer** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
* * `int` **duration** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
* * `PhoneCallDiscardReason` **reason** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
* * `long` **connection_id** - You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function discardCall($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Set phone call rating.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `boolean` **user_initiative** - Optional: User initiative
2019-09-18 21:32:24 +02:00
* * `InputPhoneCall` **peer** - The phone call
* * `int` **rating** - Rating (1-5 stars)
* * `string` **comment** - An optional comment
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function setCallRating($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Save call debugging info.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `InputPhoneCall` **peer** - The call
2019-09-18 20:46:20 +02:00
* * `DataJSON` **debug** - Debugging info
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return bool
*/
2019-09-18 20:46:20 +02:00
public function saveCallDebug($params);
2019-06-05 15:38:32 +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
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
/**
2019-09-18 21:32:24 +02:00
* Get language pack.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **lang_pack** - Lang pack
2019-09-18 20:46:20 +02:00
* * `string` **lang_code** - Language code
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
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 LangPackDifference
2019-06-05 12:04:36 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getLangPack($params);
2019-06-05 12:04:36 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get language pack strings.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **lang_pack** - Lang pack
2019-09-18 20:46:20 +02:00
* * `string` **lang_code** - Language code
2019-09-18 21:32:24 +02:00
* * `[string]` **keys** - Keys
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return _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-09-18 20:46:20 +02:00
public function getStrings($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get language pack updates.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
* * `string` **lang_pack** - Language pack
* * `string` **lang_code** - Lang code
2019-09-18 20:46:20 +02:00
* * `int` **from_version** - Previous version
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return LangPackDifference
*/
2019-09-18 20:46:20 +02:00
public function getDifference($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get available languages.
2019-06-05 15:38:32 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **lang_pack** - Lang pack
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
*
* @return _of_LangPackLanguage[]
2019-06-05 15:38:32 +02:00
*/
2019-09-18 20:46:20 +02:00
public function getLanguages($params);
2019-06-05 15:38:32 +02:00
/**
2019-09-18 21:32:24 +02:00
* Get language.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `string` **lang_pack** - Lang pack
* * `string` **lang_code** - Lang code
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-05 15:38:32 +02:00
*
* @return LangPackLanguage
*/
2019-09-18 20:46:20 +02:00
public function getLanguage($params);
2018-02-24 17:54:39 +01:00
}
2019-06-23 13:08:44 +02:00
interface folders
{
/**
2019-09-18 21:32:24 +02:00
* Edit folder.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `[InputFolderPeer]` **folder_peers** - New folder peers
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-23 13:08:44 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function editPeerFolders($params);
2019-06-23 13:08:44 +02:00
/**
2019-09-18 21:32:24 +02:00
* Delete folder.
2019-09-18 20:46:20 +02:00
*
2019-09-18 21:32:24 +02:00
* Parameters:
2019-09-18 20:46:20 +02:00
* * `int` **folder_id** - Folder ID
2019-09-18 21:32:24 +02:00
*
2019-09-18 20:46:20 +02:00
* @param array $params Parameters
2019-06-23 13:08:44 +02:00
*
* @return Updates
*/
2019-09-18 20:46:20 +02:00
public function deleteFolder($params);
2019-06-23 13:08:44 +02:00
}
2019-09-18 20:46:20 +02:00
class InternalDoc extends APIFactory
{
2019-10-31 15:06:25 +01:00
/**
* Cleanup memory and session file.
*
* @return void
*/
public function cleanup(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Logger.
*
* @param string $param Parameter
* @param int $level Logging level
* @param string $file File where the message originated
*
* @return void
*/
public function logger($param, int $level = \danog\MadelineProto\Logger::NOTICE, string $file = '', array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-10-31 15:06:25 +01:00
return $this->__call(__FUNCTION__, [$param, $level, $file, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Get async HTTP client.
*
* @return \Amp\Artax\Client
*/
public function getHTTPClient(array $extra = []): Amp\Artax\Client
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Get async DNS client.
*
* @return \Amp\Dns\Resolver
*/
public function getDNSClient(array $extra = []): Amp\Dns\Resolver
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Get contents of remote file asynchronously.
*
* @param string $url URL
*
* @return \Generator<string>
*/
public function fileGetContents(string $url, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$url, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Get all datacenter connections.
*
* @return array<DataCenterConnection>
*/
2019-09-18 21:45:08 +02:00
public function getDataCenterConnections(array $extra = []): array
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-10-31 15:06:25 +01:00
public function hasAllAuth(array $extra = []): bool
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Get correct settings array for the latest version.
*
* @param array $settings Current settings array
* @param array $previousSettings Previous settings array
*
* @return array
*/
public function getSettings(array $settings, array $previousSettings = [
], array $extra = []): array
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$settings, $previousSettings, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Parse and store settings.
*
* @param array $settings Settings
*
* @return void
*/
public function parseSettings(array $settings, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$settings, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Setup logger.
*
* @return void
*/
2019-09-18 21:45:08 +02:00
public function setupLogger(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Reset all MTProto sessions.
*
* @param boolean $de Whether to reset the session ID
* @param boolean $auth_key Whether to reset the auth key
*
* @return void
*/
2019-09-18 21:45:08 +02:00
public function resetMTProtoSession(bool $de = true, bool $auth_key = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$de, $auth_key, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Check if connected to datacenter using HTTP.
*
* @param string $datacenter DC ID
*
* @return boolean
*/
2019-10-31 15:06:25 +01:00
public function isHttp(string $datacenter, array $extra = []): bool
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$datacenter, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-10-31 15:06:25 +01:00
public function isInitingAuthorization(array $extra = [])
{
return $this->__call(__FUNCTION__, [$extra]);
}
/**
* Connects to all datacenters and if necessary creates authorization keys, binds them and writes client info.
*
* @param boolean $reconnectAll Whether to reconnect to all DCs
*
* @return \Generator
*/
2019-09-18 21:49:26 +02:00
public function connectToAllDcs(bool $reconnectAll = true, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$reconnectAll, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Clean up MadelineProto session after logout.
*
* @return void
*/
2019-09-18 21:45:08 +02:00
public function resetSession(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Reset the update state and fetch all updates from the beginning.
*
* @return void
*/
2019-09-18 21:45:08 +02:00
public function resetUpdateState(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Start the update system.
*
* @param boolean $anyway Force start update system?
*
* @return void
*/
2019-09-18 21:45:08 +02:00
public function startUpdateSystem($anyway = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$anyway, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Store shared phone config.
*
* @param mixed $watcherId Watcher ID
*
* @return void
*/
2019-09-18 21:45:08 +02:00
public function getPhoneConfig($watcherId = null, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$watcherId, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Store RSA keys for CDN datacenters.
*
* @param string $datacenter DC ID
*
* @return \Generator
*/
public function getCdnConfig(string $datacenter, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$datacenter, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Get cached server-side config.
*
* @return array
*/
public function getCachedConfig(array $extra = []): array
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Get cached (or eventually re-fetch) server-side config.
*
* @param array $config Current config
* @param array $options Options for method call
*
* @return \Generator
*/
public function getConfig(array $config = [
], array $options = [
2019-09-18 21:45:08 +02:00
], array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$config, $options, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Get info about the logged-in user.
*
* @return \Generator<array>
*/
2019-09-18 21:45:08 +02:00
public function getSelf(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getMethodCallbacks(array $extra = []): array
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getMethodBeforeCallbacks(array $extra = []): array
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getConstructorCallbacks(array $extra = []): array
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getConstructorBeforeCallbacks(array $extra = []): array
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getConstructorSerializeCallbacks(array $extra = []): array
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getTypeMismatchCallbacks(array $extra = []): array
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Create authorization key.
*
* @param int $expires_in Expiry date of auth key, -1 for permanent auth key
* @param string $datacenter DC ID
*
* @return \Generator<AuthKey>
*/
2019-09-18 21:49:26 +02:00
public function createAuthKey(int $expires_in, string $datacenter, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$expires_in, $datacenter, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Check validity of g_a parameters.
*
* @param BigInteger $g_a
* @param BigInteger $p
*
* @return bool
*/
2019-09-18 21:45:08 +02:00
public function checkG(\phpseclib\Math\BigInteger $g_a, \phpseclib\Math\BigInteger $p, array $extra = []): bool
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$g_a, $p, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Check validity of p and g parameters.
*
* @param BigInteger $p
* @param BigInteger $g
*
* @return boolean
*/
2019-09-18 21:45:08 +02:00
public function checkPG(\phpseclib\Math\BigInteger $p, \phpseclib\Math\BigInteger $g, array $extra = []): bool
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$p, $g, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Get diffie-hellman configuration.
*
* @return \Generator<array>
*/
2019-09-18 21:49:26 +02:00
public function getDhConfig(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Bind temporary and permanent auth keys.
*
* @param integer $expires_in Date of expiry for binding
* @param string $datacenter DC ID
*
* @return \Generator<bool>
*/
2019-09-18 21:49:26 +02:00
public function bindTempAuthKey(int $expires_in, string $datacenter, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$expires_in, $datacenter, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Factorize number asynchronously using the wolfram API.
*
* @param string|integer $what Number to factorize
*
* @return \Generator<string|bool>
*/
2019-09-18 21:49:26 +02:00
public function wolframSingle($what, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$what, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Asynchronously create, bind and check auth keys for all DCs.
*
* @return \Generator
*/
2019-09-18 21:49:26 +02:00
public function initAuthorization(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Init auth keys for single DC.
*
* @param string $id DC ID
* @param DataCenterConnection $socket DC object
*
* @return \Generator
*/
2019-09-18 21:49:26 +02:00
public function initAuthorizationSocket(string $id, \danog\MadelineProto\DataCenterConnection $socket, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $socket, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Sync authorization data between DCs.
*
* @param string $id DC ID
*
* @return \Generator
*/
2019-09-18 21:49:26 +02:00
public function syncAuthorization(string $id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Call method and wait asynchronously for response.
*
* If the $aargs['noResponse'] is true, will not wait for a response.
*
* @param string $method Method name
* @param array $args Arguments
* @param array $aargs Additional arguments
*
* @return Promise
*/
2019-10-31 11:17:22 +01:00
public function methodCall(string $method, $args = [
2019-09-18 21:32:24 +02:00
], array $aargs = [
2019-09-18 20:46:20 +02:00
'msg_id' => null,
2019-09-18 21:49:26 +02:00
], array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$method, $args, $aargs, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Call method and make sure it is asynchronously sent.
*
* @param string $method Method name
* @param array $args Arguments
* @param array $aargs Additional arguments
*
* @return Promise
*/
2019-09-18 21:32:24 +02:00
public function methodCallWrite(string $method, $args = [
], array $aargs = [
2019-09-18 20:46:20 +02:00
'msg_id' => null,
2019-09-18 21:49:26 +02:00
], array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$method, $args, $aargs, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function aesCalculate($msg_key, $auth_key, $to_server = true, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$msg_key, $auth_key, $to_server, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function oldAesCalculate($msg_key, $auth_key, $to_server = true, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$msg_key, $auth_key, $to_server, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function ctrEncrypt($message, $key, $iv, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message, $key, $iv, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function igeEncrypt($message, $key, $iv, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message, $key, $iv, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function igeDecrypt($message, $key, $iv, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message, $key, $iv, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function toSupergroup($id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function fromSupergroup($id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function isSupergroup($id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function addSupport($support, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$support, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function addUser($user, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$user, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function addChat($chat, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function cachePwrChat($id, $full_fetch, $send, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $full_fetch, $send, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function peerIsset($id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function entitiesPeerIsset($entities, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$entities, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function fwdPeerIsset($fwd, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$fwd, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getFolderId($id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getId($id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getInfo($id, $recursive = true, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $recursive, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function genAll($constructor, $folder_id = null, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$constructor, $folder_id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function fullChatLastUpdated($id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getFullInfo($id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getPwrChat($id, $fullfetch = true, $send = true, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $fullfetch, $send, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function recurseAlphabetSearchParticipants($channel, $filter, $q, $total_count, &$res, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$channel, $filter, $q, $total_count, $res, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function fetchParticipants($channel, $filter, $q, $total_count, &$res, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$channel, $filter, $q, $total_count, $res, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function fetchParticipantsCache($channel, $filter, $q, $offset, $limit, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$channel, $filter, $q, $offset, $limit, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function storeParticipantsCache($gres, $channel, $filter, $q, $offset, $limit, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$gres, $channel, $filter, $q, $offset, $limit, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getParticipantsHash($channel, $filter, $q, $offset, $limit, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$channel, $filter, $q, $offset, $limit, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function storeDb($res, $force = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$res, $force, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function resolveUsername($username, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$username, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function pwrUpdateHandler($update, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$update, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getUpdatesUpdateHandler($update, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$update, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
public function getUpdates($params = [
2019-09-18 21:45:08 +02:00
], array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function waitUpdate(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function signalUpdate(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function checkMsgId($message, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function loadUpdateState(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
public function loadChannelState($channelId = null, $init = [
2019-09-18 21:45:08 +02:00
], array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$channelId, $init, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getChannelStates(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getUpdatesState(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function handleUpdates($updates, $actual_updates = null, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$updates, $actual_updates, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function saveUpdate($update, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$update, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function pwrWebhook($update, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$update, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function upload($file, $file_name = '', $cb = null, $encrypted = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$file, $file_name, $cb, $encrypted, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function uploadFromUrl($url, int $size = 0, string $file_name = '', $cb = null, bool $encrypted = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$url, $size, $file_name, $cb, $encrypted, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function uploadFromStream($stream, int $size, string $mime, string $file_name = '', $cb = null, bool $encrypted = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$stream, $size, $mime, $file_name, $cb, $encrypted, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function uploadFromCallable($callable, int $size, string $mime, string $file_name = '', $cb = null, bool $refetchable = true, bool $encrypted = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$callable, $size, $mime, $file_name, $cb, $refetchable, $encrypted, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function uploadEncrypted($file, $file_name = '', $cb = null, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$file, $file_name, $cb, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function uploadFromTgfile($media, $cb = null, $encrypted = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$media, $cb, $encrypted, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function genAllFile($media, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$media, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getFileInfo($constructor, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$constructor, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getPropicInfo($data, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$data, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getDownloadInfo($message_media, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message_media, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function extractPhotosize($photo, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$photo, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function downloadToDir($message_media, $dir, $cb = null, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message_media, $dir, $cb, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function downloadToFile($message_media, $file, $cb = null, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message_media, $file, $cb, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function downloadToStream($message_media, $stream, $cb = null, $offset = 0, $end = -1, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message_media, $stream, $cb, $offset, $end, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function downloadToCallable($message_media, $callable, $cb = null, $parallelize = true, $offset = 0, $end = -1, ?int $part_size = null, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message_media, $callable, $cb, $parallelize, $offset, $end, $part_size, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function acceptSecretChat($params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function requestSecretChat($user, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$user, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function completeSecretChat($params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function notifyLayer($chat, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function rekey($chat, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function acceptRekey($chat, $params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function commitRekey($chat, $params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function completeRekey($chat, $params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function secretChatStatus($chat, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getSecretChat($chat, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function discardSecretChat($chat, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function encryptSecretMessage($chat_id, $message, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat_id, $message, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function handleEncryptedUpdate($message, $test = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message, $test, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function tryMTProtoV1Decrypt($message_key, $chat_id, $old, $encrypted_data, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message_key, $chat_id, $old, $encrypted_data, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function tryMTProtoV2Decrypt($message_key, $chat_id, $old, $encrypted_data, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message_key, $chat_id, $old, $encrypted_data, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function handleDecryptedUpdate($update, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$update, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function checkSecretInSeqNo($chat_id, $seqno, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat_id, $seqno, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function checkSecretOutSeqNo($chat_id, $seqno, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat_id, $seqno, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function generateSecretInSeqNo($chat, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function generateSecretOutSeqNo($chat, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$chat, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-10-29 22:06:51 +01:00
public function constructTL($files, $objects = [
2019-09-18 21:45:08 +02:00
], array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$files, $objects, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getMethodNamespaces(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getMethodsNamespaced(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function updateCallbacks($objects, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$objects, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function deserializeBool($id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function serializeObject($type, $object, $ctx, $layer = -1, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$type, $object, $ctx, $layer, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function serializeMethod($method, $arguments, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$method, $arguments, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function serializeParams($tl, $arguments, $ctx, $layer = -1, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$tl, $arguments, $ctx, $layer, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
public function getLength($stream, $type = [
2019-09-18 20:46:20 +02:00
'type' => '',
2019-09-18 21:45:08 +02:00
], array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$stream, $type, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* :type stream: io.BytesIO object.
*/
2019-09-18 21:32:24 +02:00
public function deserialize($stream, $type = [
2019-09-18 20:46:20 +02:00
'type' => '',
2019-09-18 21:45:08 +02:00
], array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$stream, $type, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function htmlEntityDecode($stuff, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$stuff, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function mbStrlen($text, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$text, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function mbSubstr($text, $offset, $length = null, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$text, $offset, $length, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function mbStrSplit($text, $length, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$text, $length, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function parseButtons($rows, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$rows, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function parseReplyMarkup($markup, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$markup, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
public function MTProtoToBotAPI($data, $sent_arguments = [
2019-09-18 21:45:08 +02:00
], array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$data, $sent_arguments, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function botAPIToMTProto($arguments, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$arguments, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function parseNode($node, &$entities, &$new_message, &$offset, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$node, $entities, $new_message, $offset, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function parseMode($arguments, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$arguments, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function splitToChunks($args, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$args, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function multipleExplodeKeepDelimiters($delimiters, $string, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$delimiters, $string, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function htmlFixtags($text, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$text, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function buildRows($button_list, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$button_list, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function photosizeToBotAPI($photoSize, $photo, $thumbnail = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$photoSize, $photo, $thumbnail, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function unpackFileId($file_id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$file_id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getMimeFromExtension($extension, $default, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extension, $default, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getExtensionFromMime($mime, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$mime, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getExtensionFromLocation($location, $default, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$location, $default, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getMimeFromFile($file, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$file, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getMimeFromBuffer($buffer, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$buffer, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function tdcliToTd(&$params, $key = null, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $key, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function tdToMTProto($params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function MTProtoToTdcli($params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function MTProtoToTd(&$params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function tdToTdcli($params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Generate MTProto vector hash.
*
* @param array $ints IDs
*
* @return int Vector hash
*/
public function genVectorHash(array $ints, array $extra = []): int
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$ints, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Get random integer.
*
* @param integer $modulus Modulus
*
* @return int
*/
public function randomInt($modulus = false, array $extra = []): int
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$modulus, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Get random string of specified length.
*
* @param integer $length Length
*
* @return string Random string
*/
public function random(int $length, array $extra = []): string
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$length, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
2019-10-31 11:17:22 +01:00
* Positive modulo
2019-09-18 20:46:20 +02:00
* Works just like the % (modulus) operator, only returns always a postive number.
2019-10-31 11:17:22 +01:00
*
* @param int $a A
* @param int $b B
*
* @return int Modulo
2019-09-18 20:46:20 +02:00
*/
2019-10-31 11:17:22 +01:00
public function posmod(int $a, int $b, array $extra = []): int
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$a, $b, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Unpack base256 signed int.
*
* @param string $value base256 int
*
* @return integer
*/
public function unpackSignedInt($value, array $extra = []): int
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$value, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Unpack base256 signed long.
*
* @param string $value base256 long
*
* @return integer
*/
public function unpackSignedLong($value, array $extra = []): int
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$value, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Unpack base256 signed long to string.
*
* @param string $value base256 long
*
* @return string
*/
public function unpackSignedLongString($value, array $extra = []): string
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$value, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Convert integer to base256 signed int.
*
* @param integer $value Value to convert
*
* @return string
*/
public function packSignedInt(int $value, array $extra = []): string
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$value, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Convert integer to base256 long.
*
* @param int $value Value to convert
*
* @return string
*/
public function packSignedLong(int $value, array $extra = []): string
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$value, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Convert value to unsigned base256 int.
*
* @param int $value Value
*
* @return string
*/
public function packUnsignedInt(int $value, array $extra = []): string
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$value, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Convert double to binary version.
*
* @param double $value Value to convert
*
* @return string
*/
public function packDouble(\danog\MadelineProto\double $value, array $extra = []): string
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$value, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Unpack binary double.
*
* @param string $value Value to unpack
*
* @return double
*/
public function unpackDouble(string $value, array $extra = []): danog\MadelineProto\double
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$value, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Synchronously wait for a promise|generator.
*
* @param \Generator|Promise $promise The promise to wait for
* @param boolean $ignoreSignal Whether to ignore shutdown signals
*
* @return mixed
*/
2019-09-18 21:45:08 +02:00
public function wait($promise, $ignoreSignal = false, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$promise, $ignoreSignal, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Returns a promise that succeeds when all promises succeed, and fails if any promise fails.
* Returned promise succeeds with an array of values used to succeed each contained promise, with keys corresponding to the array of promises.
*
* @param array<\Generator|Promise> $promises Promises
*
* @return Promise
*/
public function all(array $promises, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$promises, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Returns a promise that is resolved when all promises are resolved. The returned promise will not fail.
*
* @param array<Promise|\Generator> $promises Promises
*
* @return Promise
*/
public function any(array $promises, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$promises, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Resolves with a two-item array delineating successful and failed Promise results.
* The returned promise will only fail if the given number of required promises fail.
*
* @param array<Promise|\Generator> $promises Promises
*
* @return Promise
*/
public function some(array $promises, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$promises, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Returns a promise that succeeds when the first promise succeeds, and fails only if all promises fail.
*
* @param array<Promise|\Generator> $promises Promises
*
* @return Promise
*/
public function first(array $promises, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$promises, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Create an artificial timeout for any \Generator or Promise.
*
* @param \Generator|Promise $promise
* @param integer $timeout
*
* @return Promise
*/
public function timeout($promise, int $timeout, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$promise, $timeout, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Convert generator, promise or any other value to a promise.
*
* @param \Generator|Promise|mixed $promise
*
* @return Promise
*/
2019-09-18 21:45:08 +02:00
public function call($promise, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$promise, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Call promise in background.
*
* @param \Generator|Promise $promise Promise to resolve
* @param ?\Generator|Promise $actual Promise to resolve instead of $promise
* @param string $file File
*
* @return void
*/
2019-09-18 21:45:08 +02:00
public function callFork($promise, $actual = null, $file = '', array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$promise, $actual, $file, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Call promise in background, deferring execution.
*
* @param \Generator|Promise $promise Promise to resolve
*
* @return void
*/
2019-09-18 21:45:08 +02:00
public function callForkDefer($promise, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$promise, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Rethrow error catched in strand.
*
* @param \Throwable $e Exception
* @param string $file File where the strand started
*
* @return void
*/
public function rethrow(\Throwable $e, $file = '', array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$e, $file, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 15:06:25 +01:00
/**
* Call promise $b after promise $a.
*
* @param \Generator|Promise $a Promise A
* @param \Generator|Promise $b Promise B
*
* @return Promise
*/
2019-09-18 21:45:08 +02:00
public function after($a, $b, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$a, $b, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Asynchronously send noCache headers.
*
* @param integer $status HTTP status code to send
* @param string $message Message to print
*
* @return Promise
*/
public function noCache(int $status, string $message, array $extra = [])
{
return $this->__call(__FUNCTION__, [$status, $message, $extra]);
}
2019-10-29 22:00:21 +01:00
/**
* Asynchronously lock a file
* Resolves with a callbable that MUST eventually be called in order to release the lock.
*
2019-10-31 11:17:22 +01:00
* @param string $file File to lock
* @param integer $operation Locking mode
* @param integer $polling Polling interval
*
2019-10-29 22:00:21 +01:00
* @return Promise
*/
public function flock(string $file, int $operation, $polling = 0.1, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$file, $operation, $polling, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Asynchronously lock a file (internal generator function).
*
* @param string $file File to lock
* @param integer $operation Locking mode
* @param integer $polling Polling interval
*
* @return void
*/
2019-10-29 22:00:21 +01:00
public function flockGenerator(string $file, int $operation, $polling, array $extra = [])
{
return $this->__call(__FUNCTION__, [$file, $operation, $polling, $extra]);
}
2019-10-31 11:17:22 +01:00
/**
* Asynchronously sleep.
*
* @param int $time Number of seconds to sleep for
*
* @return Promise
*/
public function sleep(int $time, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$time, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Asynchronously read line.
*
* @param string $prompt Prompt
*
* @return Promise
*/
public function readLine(string $prompt = '', array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$prompt, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Asynchronously read line (generator function).
*
* @param string $prompt Prompt
*
* @return void
*/
public function readLineGenerator(string $prompt = '', array $extra = [])
2019-10-29 22:00:21 +01:00
{
return $this->__call(__FUNCTION__, [$prompt, $extra]);
}
2019-10-31 11:17:22 +01:00
/**
* Asynchronously write to stdout/browser.
*
* @param string $string Message to echo
*
* @return Promise
*/
public function echo(string $string, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$string, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* Check if is array or similar (traversable && countable && arrayAccess).
*
* @param arraylike $var Value to check
*
* @return boolean
*/
2019-09-18 21:45:08 +02:00
public function isArrayOrAlike($var, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$var, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
2019-09-18 21:21:34 +02:00
* Convert to camelCase.
2019-09-18 20:46:20 +02:00
*
* @param string $input
2019-09-18 21:21:34 +02:00
*
2019-09-18 20:46:20 +02:00
* @return string
*/
2019-09-18 21:45:08 +02:00
public function fromSnakeCase(string $input, array $extra = []): string
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$input, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
2019-09-18 21:21:34 +02:00
* Convert to snake_case.
2019-09-18 20:46:20 +02:00
*
* @param string $input
2019-09-18 21:21:34 +02:00
*
2019-09-18 20:46:20 +02:00
* @return string
*/
2019-09-18 21:45:08 +02:00
public function fromCamelCase(string $input, array $extra = []): string
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$input, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:21:34 +02:00
/**
2019-09-18 21:32:24 +02:00
* Create array.
2019-09-18 21:21:34 +02:00
*
* @param mixed ...$params Params
2019-09-18 21:32:24 +02:00
*
2019-09-18 21:21:34 +02:00
* @return array
*/
public function arr(...$params): array
{
2019-09-18 21:31:51 +02:00
return $this->__call(__FUNCTION__, Tools::arr(...$params));
2019-09-18 21:21:34 +02:00
}
2019-10-31 11:17:22 +01:00
/**
* base64URL decode.
*
* @param string $data Data to decode
*
* @return string
*/
public function base64urlDecode(string $data, array $extra = []): string
{
return $this->__call(__FUNCTION__, [$data, $extra]);
}
/**
* Base64URL encode.
*
* @param string $data Data to encode
*
* @return string
*/
public function base64urlEncode(string $data, array $extra = []): string
{
return $this->__call(__FUNCTION__, [$data, $extra]);
}
/**
* null-byte RLE decode.
*
* @param string $string Data to decode
*
* @return string
*/
public function rleDecode(string $string, array $extra = []): string
{
return $this->__call(__FUNCTION__, [$string, $extra]);
}
/**
* null-byte RLE encode.
*
* @param string $string Data to encode
*
* @return string
*/
public function rleEncode(string $string, array $extra = []): string
{
return $this->__call(__FUNCTION__, [$string, $extra]);
}
2019-10-31 15:06:25 +01:00
/**
* Get final element of array.
*
* @param array $what Array
*
* @return mixed
*/
public function end(array $what, array $extra = [])
{
return $this->__call(__FUNCTION__, [$what, $extra]);
}
/**
* Escape string for markdown.
*
* @param string $hwat String to escape
*
* @return void
*/
public function markdownEscape(string $hwat, array $extra = []): string
{
return $this->__call(__FUNCTION__, [$hwat, $extra]);
}
/**
* Whether this is altervista.
*
* @return boolean
*/
public function isAltervista(array $extra = []): bool
{
return $this->__call(__FUNCTION__, [$extra]);
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function requestCall($user, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$user, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function acceptCall($call, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$call, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
public function discardCall($call, $reason, $rating = [
2019-09-18 21:45:08 +02:00
], $need_debug = true, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$call, $reason, $rating, $need_debug, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function confirmCall($params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function completeCall($params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function callStatus($id, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$id, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getCall($call, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$call, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function checkCalls(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getDialogs($force = true, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$force, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getFullDialogs($force = true, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$force, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function setEventHandler($event_handler, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$event_handler, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getEventHandler(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function eventUpdateHandler($update, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$update, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function setWebhook($hook_url, $pem_path = null, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$hook_url, $pem_path, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function setCallback($callback, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$callback, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function logout(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function botLogin($token, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$token, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function phoneLogin($number, $sms_type = 5, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$number, $sms_type, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function completePhoneLogin($code, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$code, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function importAuthorization($authorization, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$authorization, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function exportAuthorization(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function completeSignup($first_name, $last_name, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$first_name, $last_name, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function complete2faLogin($password, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$password, $extra]);
2019-09-18 20:46:20 +02:00
}
/**
* Update the 2FA password.
*
* The params array can contain password, new_password, email and hint params.
*
* @param array $params The params
* @return void
*/
2019-09-18 21:45:08 +02:00
public function update2fa(array $params, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$params, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function setLoopCallback($callback, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$callback, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function loop($max_forks = 0, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$max_forks, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function closeConnection($message = 'OK!', array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function setNoop(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function noop(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function start(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function webPhoneLogin(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function webCompletePhoneLogin(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function webComplete2faLogin(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function webCompleteSignup(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function webBotLogin(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function webEcho($message = '', array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function webEchoTemplate($message, $form, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$message, $form, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function getWebTemplate(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function setWebTemplate($template, array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$template, $extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function checkTos(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function acceptTos(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
2019-09-18 21:45:08 +02:00
public function declineTos(array $extra = [])
2019-09-18 20:46:20 +02:00
{
2019-09-18 21:45:08 +02:00
return $this->__call(__FUNCTION__, [$extra]);
2019-09-18 20:46:20 +02:00
}
2019-09-18 21:32:24 +02:00
}