Skip to content

Commit

Permalink
Update to v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
XLixl4snSU authored May 28, 2024
2 parents d150c77 + 96e8704 commit bb9e43d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions includes/admin-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ function telegram_notifier_display_page() {
<input type="hidden" name="nonce" value="$nonce" />
<p><label for="telegram_notifier_api_key">Telegram Bot Token</label> <input type="text" id="telegram_notifier_api_key" name="telegram_notifier_api_key" value="$telegram_notifier_api_key" size="70" /></p>
<p><label for="telegram_notifier_user_id">Telegram User ID(s) (separated by comma)</label> <input type="text" id="telegram_notifier_user_id" name="telegram_notifier_user_id" value="$telegram_notifier_user_id" size="70" /></p>
<p><label for="telegram_notifier_user_notification_text">Notification text (use %url, %shortlink and %ip as variables)</label> <input type="text" id="telegram_notifier_user_notification_text" name="telegram_notifier_user_notification_text" value="$telegram_notifier_user_notification_text" size="70" /></p>
<p><label for="telegram_notifier_user_notification_text">Notification text (use %url, %shortlink and %ip as variables)</label><br>
<textarea id="telegram_notifier_user_notification_text" name="telegram_notifier_user_notification_text" cols="60" rows="5" size="70" />$telegram_notifier_user_notification_text</textarea></p>
<input type='hidden' id="telegram_notifier_delete_settings_on_uninstall" name="telegram_notifier_delete_settings_on_uninstall" value='false' >
<p><label for="telegram_notifier_delete_settings_on_uninstall">Check to delete all stored settings on uninstall/deactivation. </label> <input type="checkbox" id="telegram_notifier_delete_settings_on_uninstall" name="telegram_notifier_delete_settings_on_uninstall" value="true" $checkbox><br>
<p><label for="telegram_notifier_delete_settings_on_uninstall">Check to delete all stored settings on uninstall/deactivation. </label>
<input type="checkbox" id="telegram_notifier_delete_settings_on_uninstall" name="telegram_notifier_delete_settings_on_uninstall" value="true" $checkbox><br>
<p><input type="submit" value="Update settings" /></p>
</form>
Expand All @@ -73,5 +74,3 @@ function telegram_notifier_update_options($option) {

}
}


4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Telegram Notifier
Plugin URI: https://github.com/XLixl4snSU/yourls-telegram-notifier
Description: This plugin provides Telegram notifications for newly created shortlinks
Version: 1.0
Version: 1.0.1
Author: XLixl4snSU
Author URI: https://github.com/XLixl4snSU
*/
Expand Down Expand Up @@ -59,4 +59,4 @@ function telegram_notifier_api_request( $message ) {
$context = stream_context_create($options);
$resp = file_get_contents($telegram_api_url, false, $context);
}
}
}

0 comments on commit bb9e43d

Please sign in to comment.