From 979d7575fc4bdee37c10b3d17fc2be90c3fed88c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 3 Apr 2020 14:10:46 +0200 Subject: [PATCH] Update docs --- src/danog/MadelineProto/APIFactory.php | 6 + src/danog/MadelineProto/InternalDoc.php | 68 ++++++++ src/danog/MadelineProto/Lang.php | 162 ++++++++++++++++++ .../MadelineProto/Loop/Update/SeqLoop.php | 4 +- 4 files changed, 239 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/APIFactory.php b/src/danog/MadelineProto/APIFactory.php index 875c2cee..7af38019 100644 --- a/src/danog/MadelineProto/APIFactory.php +++ b/src/danog/MadelineProto/APIFactory.php @@ -21,6 +21,12 @@ namespace danog\MadelineProto; class APIFactory extends AbstractAPIFactory { + /** + * @internal this is a internal property generated by build_docs.php, don't change manually + * + * @var stats + */ + public $stats; /** * @internal this is a internal property generated by build_docs.php, don't change manually * diff --git a/src/danog/MadelineProto/InternalDoc.php b/src/danog/MadelineProto/InternalDoc.php index 4c7c1ae7..75851972 100644 --- a/src/danog/MadelineProto/InternalDoc.php +++ b/src/danog/MadelineProto/InternalDoc.php @@ -2906,6 +2906,45 @@ interface messages * @return bool */ public function toggleStickerSets($params); + + /** + * + * + * @return of DialogFilter[] + */ + public function getDialogFilters(); + + /** + * + * + * @return of DialogFilterSuggested[] + */ + public function getSuggestedDialogFilters(); + + /** + * + * + * Parameters: + * * `int` **id** - + * * `DialogFilter` **filter** - Optional:. + * + * @param array $params Parameters + * + * @return bool + */ + public function updateDialogFilter($params); + + /** + * + * + * Parameters: + * * `[int]` **order** -. + * + * @param array $params Parameters + * + * @return bool + */ + public function updateDialogFiltersOrder($params); } interface updates @@ -4146,6 +4185,35 @@ interface folders public function deleteFolder($params); } +interface stats +{ + /** + * + * + * Parameters: + * * `boolean` **dark** - Optional: + * * `InputChannel` **channel** -. + * + * @param array $params Parameters + * + * @return stats.BroadcastStats + */ + public function getBroadcastStats($params); + + /** + * + * + * Parameters: + * * `string` **token** - + * * `long` **x** - Optional:. + * + * @param array $params Parameters + * + * @return StatsGraph + */ + public function loadAsyncGraph($params); +} + class InternalDoc extends APIFactory { /** diff --git a/src/danog/MadelineProto/Lang.php b/src/danog/MadelineProto/Lang.php index 80f736b9..3a876a85 100644 --- a/src/danog/MadelineProto/Lang.php +++ b/src/danog/MadelineProto/Lang.php @@ -5753,6 +5753,87 @@ Contains the reason why access to a certain object must be restricted. Clients a 'object_payments.bankCardData' => '', 'object_payments.bankCardData_param_title_type_string' => '', 'object_payments.bankCardData_param_open_urls_type_Vector t' => '', + 'method_messages.getDialogFilters' => '', + 'method_messages.getSuggestedDialogFilters' => '', + 'method_messages.updateDialogFilter' => '', + 'method_messages.updateDialogFilter_param_id_type_int' => '', + 'method_messages.updateDialogFilter_param_filter_type_DialogFilter' => '', + 'method_messages.updateDialogFiltersOrder' => '', + 'method_messages.updateDialogFiltersOrder_param_order_type_Vector t' => '', + 'method_stats.getBroadcastStats' => '', + 'method_stats.getBroadcastStats_param_dark_type_true' => '', + 'method_stats.getBroadcastStats_param_channel_type_InputChannel' => '', + 'method_stats.loadAsyncGraph' => '', + 'method_stats.loadAsyncGraph_param_token_type_string' => '', + 'method_stats.loadAsyncGraph_param_x_type_long' => '', + 'object_inputMediaDice' => '', + 'object_channelFull_param_stats_dc_type_int' => '', + 'object_messageMediaDice' => '', + 'object_messageMediaDice_param_value_type_int' => '', + 'object_updateDialogFilter' => '', + 'object_updateDialogFilter_param_id_type_int' => '', + 'object_updateDialogFilter_param_filter_type_DialogFilter' => '', + 'object_updateDialogFilterOrder' => '', + 'object_updateDialogFilterOrder_param_order_type_Vector t' => '', + 'object_updateDialogFilters' => '', + 'object_webPageNotModified_param_cached_page_views_type_int' => '', + 'object_inputStickerSetDice' => '', + 'object_phoneCallProtocol_param_library_versions_type_Vector t' => '', + 'object_page_param_views_type_int' => '', + 'object_dialogFilter' => '', + 'object_dialogFilter_param_contacts_type_true' => '', + 'object_dialogFilter_param_non_contacts_type_true' => '', + 'object_dialogFilter_param_groups_type_true' => '', + 'object_dialogFilter_param_broadcasts_type_true' => '', + 'object_dialogFilter_param_bots_type_true' => '', + 'object_dialogFilter_param_exclude_muted_type_true' => '', + 'object_dialogFilter_param_exclude_read_type_true' => '', + 'object_dialogFilter_param_exclude_archived_type_true' => '', + 'object_dialogFilter_param_id_type_int' => '', + 'object_dialogFilter_param_title_type_string' => '', + 'object_dialogFilter_param_emoticon_type_string' => '', + 'object_dialogFilter_param_pinned_peers_type_Vector t' => '', + 'object_dialogFilter_param_include_peers_type_Vector t' => '', + 'object_dialogFilter_param_exclude_peers_type_Vector t' => '', + 'object_dialogFilterSuggested' => '', + 'object_dialogFilterSuggested_param_filter_type_DialogFilter' => '', + 'object_dialogFilterSuggested_param_description_type_string' => '', + 'object_statsDateRangeDays' => '', + 'object_statsDateRangeDays_param_min_date_type_int' => '', + 'object_statsDateRangeDays_param_max_date_type_int' => '', + 'object_statsAbsValueAndPrev' => '', + 'object_statsAbsValueAndPrev_param_current_type_double' => '', + 'object_statsAbsValueAndPrev_param_previous_type_double' => '', + 'object_statsPercentValue' => '', + 'object_statsPercentValue_param_part_type_double' => '', + 'object_statsPercentValue_param_total_type_double' => '', + 'object_statsGraphAsync' => '', + 'object_statsGraphAsync_param_token_type_string' => '', + 'object_statsGraphError' => '', + 'object_statsGraphError_param_error_type_string' => '', + 'object_statsGraph' => '', + 'object_statsGraph_param_json_type_DataJSON' => '', + 'object_statsGraph_param_zoom_token_type_string' => '', + 'object_messageInteractionCounters' => '', + 'object_messageInteractionCounters_param_msg_id_type_int' => '', + 'object_messageInteractionCounters_param_views_type_int' => '', + 'object_messageInteractionCounters_param_forwards_type_int' => '', + 'object_stats.broadcastStats' => '', + 'object_stats.broadcastStats_param_period_type_StatsDateRangeDays' => '', + 'object_stats.broadcastStats_param_followers_type_StatsAbsValueAndPrev' => '', + 'object_stats.broadcastStats_param_views_per_post_type_StatsAbsValueAndPrev' => '', + 'object_stats.broadcastStats_param_shares_per_post_type_StatsAbsValueAndPrev' => '', + 'object_stats.broadcastStats_param_enabled_notifications_type_StatsPercentValue' => '', + 'object_stats.broadcastStats_param_growth_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_followers_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_mute_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_top_hours_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_interactions_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_iv_interactions_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_views_by_source_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_new_followers_by_source_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_languages_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_recent_message_interactions_type_Vector t' => '', ], ]; @@ -11347,5 +11428,86 @@ Contains the reason why access to a certain object must be restricted. Clients a 'object_payments.bankCardData' => '', 'object_payments.bankCardData_param_title_type_string' => '', 'object_payments.bankCardData_param_open_urls_type_Vector t' => '', + 'method_messages.getDialogFilters' => '', + 'method_messages.getSuggestedDialogFilters' => '', + 'method_messages.updateDialogFilter' => '', + 'method_messages.updateDialogFilter_param_id_type_int' => '', + 'method_messages.updateDialogFilter_param_filter_type_DialogFilter' => '', + 'method_messages.updateDialogFiltersOrder' => '', + 'method_messages.updateDialogFiltersOrder_param_order_type_Vector t' => '', + 'method_stats.getBroadcastStats' => '', + 'method_stats.getBroadcastStats_param_dark_type_true' => '', + 'method_stats.getBroadcastStats_param_channel_type_InputChannel' => '', + 'method_stats.loadAsyncGraph' => '', + 'method_stats.loadAsyncGraph_param_token_type_string' => '', + 'method_stats.loadAsyncGraph_param_x_type_long' => '', + 'object_inputMediaDice' => '', + 'object_channelFull_param_stats_dc_type_int' => '', + 'object_messageMediaDice' => '', + 'object_messageMediaDice_param_value_type_int' => '', + 'object_updateDialogFilter' => '', + 'object_updateDialogFilter_param_id_type_int' => '', + 'object_updateDialogFilter_param_filter_type_DialogFilter' => '', + 'object_updateDialogFilterOrder' => '', + 'object_updateDialogFilterOrder_param_order_type_Vector t' => '', + 'object_updateDialogFilters' => '', + 'object_webPageNotModified_param_cached_page_views_type_int' => '', + 'object_inputStickerSetDice' => '', + 'object_phoneCallProtocol_param_library_versions_type_Vector t' => '', + 'object_page_param_views_type_int' => '', + 'object_dialogFilter' => '', + 'object_dialogFilter_param_contacts_type_true' => '', + 'object_dialogFilter_param_non_contacts_type_true' => '', + 'object_dialogFilter_param_groups_type_true' => '', + 'object_dialogFilter_param_broadcasts_type_true' => '', + 'object_dialogFilter_param_bots_type_true' => '', + 'object_dialogFilter_param_exclude_muted_type_true' => '', + 'object_dialogFilter_param_exclude_read_type_true' => '', + 'object_dialogFilter_param_exclude_archived_type_true' => '', + 'object_dialogFilter_param_id_type_int' => '', + 'object_dialogFilter_param_title_type_string' => '', + 'object_dialogFilter_param_emoticon_type_string' => '', + 'object_dialogFilter_param_pinned_peers_type_Vector t' => '', + 'object_dialogFilter_param_include_peers_type_Vector t' => '', + 'object_dialogFilter_param_exclude_peers_type_Vector t' => '', + 'object_dialogFilterSuggested' => '', + 'object_dialogFilterSuggested_param_filter_type_DialogFilter' => '', + 'object_dialogFilterSuggested_param_description_type_string' => '', + 'object_statsDateRangeDays' => '', + 'object_statsDateRangeDays_param_min_date_type_int' => '', + 'object_statsDateRangeDays_param_max_date_type_int' => '', + 'object_statsAbsValueAndPrev' => '', + 'object_statsAbsValueAndPrev_param_current_type_double' => '', + 'object_statsAbsValueAndPrev_param_previous_type_double' => '', + 'object_statsPercentValue' => '', + 'object_statsPercentValue_param_part_type_double' => '', + 'object_statsPercentValue_param_total_type_double' => '', + 'object_statsGraphAsync' => '', + 'object_statsGraphAsync_param_token_type_string' => '', + 'object_statsGraphError' => '', + 'object_statsGraphError_param_error_type_string' => '', + 'object_statsGraph' => '', + 'object_statsGraph_param_json_type_DataJSON' => '', + 'object_statsGraph_param_zoom_token_type_string' => '', + 'object_messageInteractionCounters' => '', + 'object_messageInteractionCounters_param_msg_id_type_int' => '', + 'object_messageInteractionCounters_param_views_type_int' => '', + 'object_messageInteractionCounters_param_forwards_type_int' => '', + 'object_stats.broadcastStats' => '', + 'object_stats.broadcastStats_param_period_type_StatsDateRangeDays' => '', + 'object_stats.broadcastStats_param_followers_type_StatsAbsValueAndPrev' => '', + 'object_stats.broadcastStats_param_views_per_post_type_StatsAbsValueAndPrev' => '', + 'object_stats.broadcastStats_param_shares_per_post_type_StatsAbsValueAndPrev' => '', + 'object_stats.broadcastStats_param_enabled_notifications_type_StatsPercentValue' => '', + 'object_stats.broadcastStats_param_growth_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_followers_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_mute_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_top_hours_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_interactions_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_iv_interactions_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_views_by_source_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_new_followers_by_source_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_languages_graph_type_StatsGraph' => '', + 'object_stats.broadcastStats_param_recent_message_interactions_type_Vector t' => '', ]; } diff --git a/src/danog/MadelineProto/Loop/Update/SeqLoop.php b/src/danog/MadelineProto/Loop/Update/SeqLoop.php index 0e3eb477..40c7c967 100644 --- a/src/danog/MadelineProto/Loop/Update/SeqLoop.php +++ b/src/danog/MadelineProto/Loop/Update/SeqLoop.php @@ -71,7 +71,9 @@ class SeqLoop extends ResumableSignalLoop \reset($this->pendingWakeups); $channelId = \key($this->pendingWakeups); unset($this->pendingWakeups[$channelId]); - if (isset($this->API->feeders[$channelId])) $this->API->feeders[$channelId]->resume(); + if (isset($this->API->feeders[$channelId])) { + $this->API->feeders[$channelId]->resume(); + } } } }