diff --git a/src/TgBotLib/Enums/Methods.php b/src/TgBotLib/Enums/Methods.php index 6c61ae0..f97b53b 100644 --- a/src/TgBotLib/Enums/Methods.php +++ b/src/TgBotLib/Enums/Methods.php @@ -40,6 +40,7 @@ use TgBotLib\Methods\GetForumTopicIconStickers; use TgBotLib\Methods\GetMe; use TgBotLib\Methods\GetMyCommands; + use TgBotLib\Methods\GetMyDefaultAdministratorRights; use TgBotLib\Methods\GetMyDescription; use TgBotLib\Methods\GetMyName; use TgBotLib\Methods\GetMyShortDescription; @@ -184,6 +185,7 @@ case SET_CHAT_MENU_BUTTON = 'setChatMenuButton'; case GET_CHAT_MENU_BUTTON = 'getChatMenuButton'; case SET_MY_DEFAULT_ADMINISTRATOR_RIGHTS = 'setMyDefaultAdministratorRights'; + case GET_MY_DEFAULT_ADMINISTRATOR_RIGHTS = 'getMyDefaultAdministratorRights'; /** * Executes a command on the provided bot with the given parameters. @@ -285,6 +287,7 @@ self::SET_CHAT_MENU_BUTTON => SetChatMenuButton::execute($bot, $parameters), self::GET_CHAT_MENU_BUTTON => GetChatMenuButton::execute($bot, $parameters), self::SET_MY_DEFAULT_ADMINISTRATOR_RIGHTS => SetMyDefaultAdministratorRights::execute($bot, $parameters), + self::GET_MY_DEFAULT_ADMINISTRATOR_RIGHTS => GetMyDefaultAdministratorRights::execute($bot, $parameters), }; } } diff --git a/src/TgBotLib/Methods/GetMyDefaultAdministratorRights.php b/src/TgBotLib/Methods/GetMyDefaultAdministratorRights.php new file mode 100644 index 0000000..4830317 --- /dev/null +++ b/src/TgBotLib/Methods/GetMyDefaultAdministratorRights.php @@ -0,0 +1,38 @@ +value, $parameters))); + } + + /** + * @inheritDoc + */ + public static function getRequiredParameters(): ?array + { + return null; + } + + /** + * @inheritDoc + */ + public static function getOptionalParameters(): ?array + { + return [ + 'for_channels' + ]; + } + } \ No newline at end of file