diff --git a/kodorvan/brainrot/system/models/telegram/commands.php b/kodorvan/brainrot/system/models/telegram/commands.php index bf002a3..9502e9f 100644 --- a/kodorvan/brainrot/system/models/telegram/commands.php +++ b/kodorvan/brainrot/system/models/telegram/commands.php @@ -160,27 +160,12 @@ final class commands extends core // Trimming the last line break character $authorizations = trim($authorizations, "\n"); - // Initializing the data export for the message - $export = 'πŸ“€ ' . $localization['account_export']; - - // Initializing the data security for the message - $data = $localization['account_data']; - - // Initializing the data security repository for the message - $security = 'πŸ“ [' . $localization['account_security_repository'] . '](https://git.svoboda.works/mirzaev/security) \([' . $localization['account_security_repository_mirror_github'] . '](https://github.com/mature-woman/security)\)'; - // Sending the message $context->sendMessage( << [ @@ -325,123 +310,17 @@ final class commands extends core [ [ 'text' => 'πŸ›οΈ ' . $localization['repository_button_code'], - 'url' => 'https://git.mirzaev.sexy/kodorvan/brainrot' + 'url' => 'https://git.svoboda.works/kodorvan/brainrot' ] ], [ [ 'text' => '⚠️ ' . $localization['repository_button_issues'], - 'url' => 'https://git.mirzaev.sexy/kodorvan/brainrot/issues' + 'url' => 'https://git.svoboda.works/kodorvan/brainrot/issues' ], [ 'text' => '🌱 ' . $localization['repository_button_suggestions'], - 'url' => 'https://git.mirzaev.sexy/kodorvan/brainrot/issues' - ] - ] - ], - 'remove_keyboard' => true, - 'disable_notification' => true - ], - 'link_preview_options' => [ - 'is_disabled' => true - ] - ]); - } else { - // Not initialized localization - - // Sending the message - $context->sendMessage('⚠️ *Failed to initialize localization*') - ->then(function (message $message) use ($context) { - // Ending the conversation process - $context->endConversation(); - }); - } - } else { - // Not initialized the account - - // Sending the message - $context->sendMessage('⚠️ *Failed to initialize your Telegram account*') - ->then(function (message $message) use ($context) { - // Ending the conversation process - $context->endConversation(); - }); - } - } - - /** - * Author - * - * Responce for the command: "/author" - * - * Sends - * - * @param context $context Request data from Telegram - * - * @return void - */ - public static function author(context $context): void - { - // Initializing the account - $account = $context->get('account'); - - if ($account instanceof record) { - // Initialized the account - - // Initializing localization - $localization = $context->get('localization'); - - if ($localization) { - // Initialized localization - - // Initializing title of the message - $title = 'πŸ‘½ ' . $localization['author_title']; - - // Sending the message - $context->sendMessage($title . "\n\n" . $localization['author_text'], [ - 'reply_markup' => [ - 'inline_keyboard' => [ - [ - [ - 'text' => 'πŸ“š ' . $localization['author_button_neurojournal'], - 'url' => 'https://mirzaev.sexy' - ], - [ - 'text' => '🀟 ' . $localization['author_button_projects'], - 'url' => 'https://git.svoboda.works/mirzaev?tab=activity' - ] - ], - [ - [ - 'text' => 'πŸ“£ ' . $localization['author_button_telegram'], - 'url' => 'https://t.me/blog_mirzaev_sexy' - ], - [ - 'text' => 'βœ–οΈ ' . $localization['author_button_twitter'], - 'url' => 'https://x.com/mirzaev_sexy' - ], - [ - 'text' => 'πŸ¦‹ ' . $localization['author_button_bluesky'], - 'url' => 'https://bsky.app/profile/mirzaev.bsky.social' - ], - [ - 'text' => '⛓️ ' . $localization['author_button_bastyon'], - 'url' => 'https://bsky.app/profile/mirzaev.bsky.social' - ] - ], - [ - [ - 'text' => 'πŸ‡ΊπŸ‡Έ ' . $localization['author_button_youtube_english'], - 'url' => 'https://www.youtube.com/@MIRZAEV' - ], - [ - 'text' => 'πŸ‡·πŸ‡Ί ' . $localization['author_button_youtube_russian'], - 'url' => 'https://www.youtube.com/@MIRZAEV' - ] - ], - [ - [ - 'text' => 'βœ‰οΈ ' . $localization['author_button_message'], - 'url' => 'https://t.me/mirzaev_sexy' + 'url' => 'https://git.svoboda.works/kodorvan/brainrot/issues' ] ] ], diff --git a/kodorvan/brainrot/system/public/telegram.php b/kodorvan/brainrot/system/public/telegram.php index edb4bfd..5bb03c3 100644 --- a/kodorvan/brainrot/system/public/telegram.php +++ b/kodorvan/brainrot/system/public/telegram.php @@ -85,8 +85,6 @@ $robot->onCommand('menu', [commands::class, 'menu']); $robot->onCommand('account', [commands::class, 'account']); $robot->onCommand('language', [commands::class, 'language'])->middleware([middlewares::class, 'settings']); $robot->onCommand('repository', [commands::class, 'repository']); -/* $robot->onCommand('projects', [commands::class, 'projects']); */ -$robot->onCommand('author', [commands::class, 'author']); $robot->onCommand('society', [commands::class, 'society']); /* $robot->onCommand('system_settings', [commands::class, 'system_settings'])->middleware([middlewares::class, 'system_settings']); */