Update to layer 97
This commit is contained in:
parent
7005cdf10a
commit
a5376e91a5
1
.gitignore
vendored
1
.gitignore
vendored
@ -111,3 +111,4 @@ madeline.phar
|
||||
madeline.phar.version
|
||||
big
|
||||
*.phar
|
||||
madeline.php
|
@ -43,9 +43,9 @@ $docs = [
|
||||
'readme' => false,
|
||||
],
|
||||
[
|
||||
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v95.tl', 'calls' => __DIR__.'/src/danog/MadelineProto/TL_calls.tl', 'secret' => __DIR__.'/src/danog/MadelineProto/TL_secret.tl', 'td' => __DIR__.'/src/danog/MadelineProto/TL_td.tl'],
|
||||
'title' => 'MadelineProto API documentation (layer 95)',
|
||||
'description' => 'MadelineProto API documentation (layer 95)',
|
||||
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v97.tl', 'calls' => __DIR__.'/src/danog/MadelineProto/TL_calls.tl', 'secret' => __DIR__.'/src/danog/MadelineProto/TL_secret.tl', 'td' => __DIR__.'/src/danog/MadelineProto/TL_td.tl'],
|
||||
'title' => 'MadelineProto API documentation (layer 97)',
|
||||
'description' => 'MadelineProto API documentation (layer 97)',
|
||||
'output_dir' => __DIR__.'/docs/docs/API_docs',
|
||||
'readme' => false,
|
||||
],
|
||||
|
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit f0229af1baa48d7529f90d7c3dcfbf9d5f54187b
|
||||
Subproject commit 070bc5ab668b357711ea8e7e1ec3c944ce4d139b
|
@ -625,6 +625,22 @@ interface account
|
||||
* @return bool
|
||||
*/
|
||||
public function resetWallPapers();
|
||||
|
||||
/**
|
||||
* @return account_AutoDownloadSettings
|
||||
*/
|
||||
public function getAutoDownloadSettings();
|
||||
|
||||
/**
|
||||
* @param array params [
|
||||
* boolean low,
|
||||
* boolean high,
|
||||
* AutoDownloadSettings settings,
|
||||
* ]
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function saveAutoDownloadSettings(array $params);
|
||||
}
|
||||
|
||||
interface users
|
||||
@ -887,6 +903,7 @@ interface messages
|
||||
/**
|
||||
* @param array params [
|
||||
* boolean just_clear,
|
||||
* boolean revoke,
|
||||
* InputPeer peer,
|
||||
* int max_id,
|
||||
* ]
|
||||
@ -1900,7 +1917,9 @@ interface messages
|
||||
|
||||
/**
|
||||
* @param array params [
|
||||
* boolean dark,
|
||||
* InputPeer peer,
|
||||
* string params,
|
||||
* ]
|
||||
*
|
||||
* @return StatsURL
|
||||
@ -1926,6 +1945,34 @@ interface messages
|
||||
* @return Updates
|
||||
*/
|
||||
public function editChatDefaultBannedRights(array $params);
|
||||
|
||||
/**
|
||||
* @param array params [
|
||||
* string lang_code,
|
||||
* ]
|
||||
*
|
||||
* @return EmojiKeywordsDifference
|
||||
*/
|
||||
public function getEmojiKeywords(array $params);
|
||||
|
||||
/**
|
||||
* @param array params [
|
||||
* string lang_code,
|
||||
* int from_version,
|
||||
* ]
|
||||
*
|
||||
* @return EmojiKeywordsDifference
|
||||
*/
|
||||
public function getEmojiKeywordsDifference(array $params);
|
||||
|
||||
/**
|
||||
* @param array params [
|
||||
* string lang_code,
|
||||
* ]
|
||||
*
|
||||
* @return EmojiURL
|
||||
*/
|
||||
public function getEmojiURL(array $params);
|
||||
}
|
||||
|
||||
interface updates
|
||||
@ -2720,6 +2767,7 @@ interface phone
|
||||
|
||||
/**
|
||||
* @param array params [
|
||||
* boolean user_initiative,
|
||||
* InputPhoneCall peer,
|
||||
* int rating,
|
||||
* string comment,
|
||||
@ -2765,6 +2813,7 @@ interface langpack
|
||||
|
||||
/**
|
||||
* @param array params [
|
||||
* string lang_pack,
|
||||
* string lang_code,
|
||||
* int from_version,
|
||||
* ]
|
||||
|
@ -4856,8 +4856,56 @@ class Lang
|
||||
'object_wallPaperSettings_param_motion_type_true' => 'Motion?',
|
||||
'object_wallPaperSettings_param_background_color_type_int' => 'Background color',
|
||||
'object_wallPaperSettings_param_intensity_type_int' => 'Intensity',
|
||||
'object_inputPrivacyKeyProfilePhoto' => '',
|
||||
'object_inputPrivacyKeyForwards' => '',
|
||||
'object_inputPrivacyKeyProfilePhoto' => 'Can his profile photo be viewed?',
|
||||
'object_inputPrivacyKeyForwards' => 'Can his messages be forwarded?',
|
||||
'method_account.getAutoDownloadSettings' => 'Get autodownload settings',
|
||||
'method_account.saveAutoDownloadSettings' => 'Save autodownload settings',
|
||||
'method_account.saveAutoDownloadSettings_param_low_type_true' => 'Low preset',
|
||||
'method_account.saveAutoDownloadSettings_param_high_type_true' => 'High preset',
|
||||
'method_account.saveAutoDownloadSettings_param_settings_type_AutoDownloadSettings' => 'Autodownload settings',
|
||||
'method_messages.deleteHistory_param_revoke_type_true' => 'Delete messages for the other user',
|
||||
'method_messages.getStatsURL_param_dark_type_true' => 'Dark?',
|
||||
'method_messages.getStatsURL_param_params_type_string' => 'Params',
|
||||
'method_messages.getEmojiKeywords' => 'Get emoji keywords',
|
||||
'method_messages.getEmojiKeywords_param_lang_code_type_string' => 'Language code',
|
||||
'method_messages.getEmojiKeywordsDifference' => 'Get emoji keyword difference',
|
||||
'method_messages.getEmojiKeywordsDifference_param_lang_code_type_string' => 'Language code',
|
||||
'method_messages.getEmojiKeywordsDifference_param_from_version_type_int' => 'From version',
|
||||
'method_messages.getEmojiURL' => 'Get emoji URL',
|
||||
'method_messages.getEmojiURL_param_lang_code_type_string' => 'Language code',
|
||||
'method_phone.setCallRating_param_user_initiative_type_true' => 'User initiative',
|
||||
'method_langpack.getDifference_param_lang_pack_type_string' => 'Language pack',
|
||||
'object_user_param_support_type_true' => 'Is this a support user?',
|
||||
'object_updateChatPinnedMessage_param_version_type_int' => 'Version',
|
||||
'object_privacyKeyForwards' => 'Forwards privacy key',
|
||||
'object_privacyKeyProfilePhoto' => 'Show profile photo?',
|
||||
'object_stickerSet_param_thumb_type_PhotoSize' => 'Thumbnail',
|
||||
'object_messageFwdHeader_param_from_name_type_string' => 'Author of the original message',
|
||||
'object_autoDownloadSettings' => 'Autodownload settings',
|
||||
'object_autoDownloadSettings_param_disabled_type_true' => 'Disabled?',
|
||||
'object_autoDownloadSettings_param_video_preload_large_type_true' => 'Preload large videos?',
|
||||
'object_autoDownloadSettings_param_audio_preload_next_type_true' => 'Preload audios?',
|
||||
'object_autoDownloadSettings_param_phonecalls_less_data_type_true' => 'Use less data in phonecalls?',
|
||||
'object_autoDownloadSettings_param_photo_size_max_type_int' => 'Maximum photo file size to preload',
|
||||
'object_autoDownloadSettings_param_video_size_max_type_int' => 'Maximum video file size to preload',
|
||||
'object_autoDownloadSettings_param_file_size_max_type_int' => 'Maximum file size to preload',
|
||||
'object_account.autoDownloadSettings' => 'Autodownload settings',
|
||||
'object_account.autoDownloadSettings_param_low_type_AutoDownloadSettings' => 'Low preset?',
|
||||
'object_account.autoDownloadSettings_param_medium_type_AutoDownloadSettings' => 'Medium preset?',
|
||||
'object_account.autoDownloadSettings_param_high_type_AutoDownloadSettings' => 'High preset?',
|
||||
'object_emojiKeyword' => 'Emoji keyword',
|
||||
'object_emojiKeyword_param_keyword_type_string' => 'Keyword',
|
||||
'object_emojiKeyword_param_emoticons_type_Vector t' => 'Emoticons',
|
||||
'object_emojiKeywordDeleted' => 'Deleted emoji keyword',
|
||||
'object_emojiKeywordDeleted_param_keyword_type_string' => 'Keyword',
|
||||
'object_emojiKeywordDeleted_param_emoticons_type_Vector t' => 'Emoticons',
|
||||
'object_emojiKeywordsDifference' => 'Emoji keword difference',
|
||||
'object_emojiKeywordsDifference_param_lang_code_type_string' => 'Language code',
|
||||
'object_emojiKeywordsDifference_param_from_version_type_int' => 'Previous version',
|
||||
'object_emojiKeywordsDifference_param_version_type_int' => 'Current version',
|
||||
'object_emojiKeywordsDifference_param_keywords_type_Vector t' => 'Keywords',
|
||||
'object_emojiURL' => 'Emoji URL',
|
||||
'object_emojiURL_param_url_type_string' => 'URL',
|
||||
),
|
||||
);
|
||||
|
||||
@ -9555,7 +9603,55 @@ class Lang
|
||||
'object_wallPaperSettings_param_motion_type_true' => 'Motion?',
|
||||
'object_wallPaperSettings_param_background_color_type_int' => 'Background color',
|
||||
'object_wallPaperSettings_param_intensity_type_int' => 'Intensity',
|
||||
'object_inputPrivacyKeyProfilePhoto' => '',
|
||||
'object_inputPrivacyKeyForwards' => '',
|
||||
'object_inputPrivacyKeyProfilePhoto' => 'Can his profile photo be viewed?',
|
||||
'object_inputPrivacyKeyForwards' => 'Can his messages be forwarded?',
|
||||
'method_account.getAutoDownloadSettings' => 'Get autodownload settings',
|
||||
'method_account.saveAutoDownloadSettings' => 'Save autodownload settings',
|
||||
'method_account.saveAutoDownloadSettings_param_low_type_true' => 'Low preset',
|
||||
'method_account.saveAutoDownloadSettings_param_high_type_true' => 'High preset',
|
||||
'method_account.saveAutoDownloadSettings_param_settings_type_AutoDownloadSettings' => 'Autodownload settings',
|
||||
'method_messages.deleteHistory_param_revoke_type_true' => 'Delete messages for the other user',
|
||||
'method_messages.getStatsURL_param_dark_type_true' => 'Dark?',
|
||||
'method_messages.getStatsURL_param_params_type_string' => 'Params',
|
||||
'method_messages.getEmojiKeywords' => 'Get emoji keywords',
|
||||
'method_messages.getEmojiKeywords_param_lang_code_type_string' => 'Language code',
|
||||
'method_messages.getEmojiKeywordsDifference' => 'Get emoji keyword difference',
|
||||
'method_messages.getEmojiKeywordsDifference_param_lang_code_type_string' => 'Language code',
|
||||
'method_messages.getEmojiKeywordsDifference_param_from_version_type_int' => 'From version',
|
||||
'method_messages.getEmojiURL' => 'Get emoji URL',
|
||||
'method_messages.getEmojiURL_param_lang_code_type_string' => 'Language code',
|
||||
'method_phone.setCallRating_param_user_initiative_type_true' => 'User initiative',
|
||||
'method_langpack.getDifference_param_lang_pack_type_string' => 'Language pack',
|
||||
'object_user_param_support_type_true' => 'Is this a support user?',
|
||||
'object_updateChatPinnedMessage_param_version_type_int' => 'Version',
|
||||
'object_privacyKeyForwards' => 'Forwards privacy key',
|
||||
'object_privacyKeyProfilePhoto' => 'Show profile photo?',
|
||||
'object_stickerSet_param_thumb_type_PhotoSize' => 'Thumbnail',
|
||||
'object_messageFwdHeader_param_from_name_type_string' => 'Author of the original message',
|
||||
'object_autoDownloadSettings' => 'Autodownload settings',
|
||||
'object_autoDownloadSettings_param_disabled_type_true' => 'Disabled?',
|
||||
'object_autoDownloadSettings_param_video_preload_large_type_true' => 'Preload large videos?',
|
||||
'object_autoDownloadSettings_param_audio_preload_next_type_true' => 'Preload audios?',
|
||||
'object_autoDownloadSettings_param_phonecalls_less_data_type_true' => 'Use less data in phonecalls?',
|
||||
'object_autoDownloadSettings_param_photo_size_max_type_int' => 'Maximum photo file size to preload',
|
||||
'object_autoDownloadSettings_param_video_size_max_type_int' => 'Maximum video file size to preload',
|
||||
'object_autoDownloadSettings_param_file_size_max_type_int' => 'Maximum file size to preload',
|
||||
'object_account.autoDownloadSettings' => 'Autodownload settings',
|
||||
'object_account.autoDownloadSettings_param_low_type_AutoDownloadSettings' => 'Low preset?',
|
||||
'object_account.autoDownloadSettings_param_medium_type_AutoDownloadSettings' => 'Medium preset?',
|
||||
'object_account.autoDownloadSettings_param_high_type_AutoDownloadSettings' => 'High preset?',
|
||||
'object_emojiKeyword' => 'Emoji keyword',
|
||||
'object_emojiKeyword_param_keyword_type_string' => 'Keyword',
|
||||
'object_emojiKeyword_param_emoticons_type_Vector t' => 'Emoticons',
|
||||
'object_emojiKeywordDeleted' => 'Deleted emoji keyword',
|
||||
'object_emojiKeywordDeleted_param_keyword_type_string' => 'Keyword',
|
||||
'object_emojiKeywordDeleted_param_emoticons_type_Vector t' => 'Emoticons',
|
||||
'object_emojiKeywordsDifference' => 'Emoji keword difference',
|
||||
'object_emojiKeywordsDifference_param_lang_code_type_string' => 'Language code',
|
||||
'object_emojiKeywordsDifference_param_from_version_type_int' => 'Previous version',
|
||||
'object_emojiKeywordsDifference_param_version_type_int' => 'Current version',
|
||||
'object_emojiKeywordsDifference_param_keywords_type_Vector t' => 'Keywords',
|
||||
'object_emojiURL' => 'Emoji URL',
|
||||
'object_emojiURL_param_url_type_string' => 'URL',
|
||||
);
|
||||
}
|
@ -65,7 +65,7 @@ class MTProto implements TLCallback
|
||||
/*
|
||||
const V = 71;
|
||||
*/
|
||||
const V = 120;
|
||||
const V = 121;
|
||||
const RELEASE = '4.0';
|
||||
const NOT_LOGGED_IN = 0;
|
||||
const WAITING_CODE = 1;
|
||||
@ -629,12 +629,12 @@ class MTProto implements TLCallback
|
||||
'lang_pack' => $lang_pack,
|
||||
], 'tl_schema' => [
|
||||
// TL scheme files
|
||||
'layer' => 95,
|
||||
'layer' => 97,
|
||||
// layer version
|
||||
'src' => [
|
||||
'mtproto' => __DIR__ . '/TL_mtproto_v1.tl',
|
||||
// mtproto TL scheme
|
||||
'telegram' => __DIR__ . '/TL_telegram_v95.tl',
|
||||
'telegram' => __DIR__ . '/TL_telegram_v97.tl',
|
||||
// telegram TL scheme
|
||||
'secret' => __DIR__ . '/TL_secret.tl',
|
||||
// secret chats TL scheme
|
||||
|
1314
src/danog/MadelineProto/TL_telegram_v97.tl
Normal file
1314
src/danog/MadelineProto/TL_telegram_v97.tl
Normal file
File diff suppressed because it is too large
Load Diff
92
src/danog/MadelineProto/VoIPServerConfig.php
Normal file
92
src/danog/MadelineProto/VoIPServerConfig.php
Normal file
@ -0,0 +1,92 @@
|
||||
<?php
|
||||
/**
|
||||
* VoIPServerConfig.
|
||||
*
|
||||
* This file is part of MadelineProto.
|
||||
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU Affero General Public License for more details.
|
||||
* You should have received a copy of the GNU General Public License along with MadelineProto.
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @author Daniil Gentili <daniil@daniil.it>
|
||||
* @copyright 2016-2018 Daniil Gentili <daniil@daniil.it>
|
||||
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3
|
||||
*
|
||||
* @link https://docs.madelineproto.xyz MadelineProto documentation
|
||||
*/
|
||||
|
||||
namespace danog\MadelineProto;
|
||||
|
||||
if (class_exists('\\danog\\MadelineProto\\VoIPServerConfigInternal')) {
|
||||
/**
|
||||
* Manages storage of VoIP server config
|
||||
*/
|
||||
class VoIPServerConfig extends VoIPServerConfigInternal
|
||||
{
|
||||
/**
|
||||
* The configuration
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private static $_config = [];
|
||||
/**
|
||||
* The default configuration
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private static $_configDefault = [];
|
||||
|
||||
/**
|
||||
* Update shared call settings
|
||||
*
|
||||
* @param array $config The settings
|
||||
* @return void
|
||||
*/
|
||||
public static function update(array $config)
|
||||
{
|
||||
self::$_config = $config;
|
||||
self::updateInternal(self::getFinal());
|
||||
}
|
||||
/**
|
||||
* Get shared call settings
|
||||
*
|
||||
* @return array The settings
|
||||
*/
|
||||
public static function get(): array
|
||||
{
|
||||
return self::$_config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update default shared call settings
|
||||
*
|
||||
* @param array $configDefault The settings
|
||||
* @return void
|
||||
*/
|
||||
public static function updateDefault(array $configDefault)
|
||||
{
|
||||
self::$_configDefault = $configDefault;
|
||||
self::updateInternal(self::getFinal());
|
||||
}
|
||||
/**
|
||||
* Get default shared call settings
|
||||
*
|
||||
* @return array The settings
|
||||
*/
|
||||
public static function getDefault(): array
|
||||
{
|
||||
return self::$_configDefault;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get final settings
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function getFinal(): array
|
||||
{
|
||||
return array_merge(self::$_configDefault, self::$_config);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user