{"id":374765,"date":"2024-05-21T06:08:22","date_gmt":"2024-05-21T06:08:22","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=374765"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=374765","title":{"rendered":"<span>\u041a\u0430\u043a \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432 Telegram. 40% \u043e\u0442 \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u044e\u0437\u0435\u0440\u0430 \u043d\u0430 \u0440\u0443\u043a\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/b3d\/c4f\/713\/b3dc4f713c5f009f6fe1507256c22f30.jpg\" width=\"750\" height=\"422\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b3d\/c4f\/713\/b3dc4f713c5f009f6fe1507256c22f30.jpg\" data-blurred=\"true\"\/><\/figure>\n<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0438\u0449\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0443\u044e \u043c\u0430\u043d\u0443, \u043a\u0430\u043a \u0438 \u0447\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0422\u0413. <\/p>\n<p>\u0412 \u043c\u0430\u0440\u0442\u0435 2024 \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0448 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444 \u0437\u0430\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u043d\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u0441\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 \u0438 \u043c\u0435\u043d\u044c\u0448\u0435, \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u043b\u0438. \u041d\u0423 \u0438 \u0432 \u0446\u0435\u043b\u043e\u043c \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u043e.<\/p>\n<p>\u041f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u0443  &#8212; \u043f\u0440\u0438\u0432\u0435\u0434\u0438 \u0434\u0440\u0443\u0433\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438 40% \u043e\u0442 \u0435\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u0438 10% \u043f\u043e\u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u043e\u0442 \u0435\u0433\u043e \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0439. \u0427\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u043e, \u0442\u044b \u043c\u043e\u0436\u0435\u0448\u044c \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0434\u0430 \u0438 \u0435\u0449\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0441\u0440\u0435\u0434\u0441\u0442\u0432. \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u0437\u0430\u043f\u0435\u0440\u0442\u044b \u0432 \u0440\u0430\u043c\u043a\u0438 Telegram \u0438 \u043d\u0435 \u0438\u043c\u0435\u043b\u0438 \u043e\u043f\u044b\u0442\u0430 \u0432 \u044d\u0442\u043e\u043c, \u043c\u044b \u0437\u0430\u0434\u0430\u043b\u0438\u0441\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c &#8212; <strong>\u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0431\u043e\u0442\u0430<\/strong>? &#8212; \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 python <\/p>\n<pre><code class=\"python\">from telegram import Update from telegram.ext import Updater, CommandHandler, CallbackContext  def start(update: Update, context: CallbackContext) -> None:     ref_id = update.message.text.split()[1] if len(update.message.text.split()) > 1 else None     if ref_id:         # \u0437\u0434\u0435\u0441\u044c \u0443 \u0432\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u043e\u0434 \u0434\u043b\u044f \u0443\u0447\u0435\u0442\u0430 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a         context.bot.send_message(chat_id=update.effective_chat.id, text=f\"\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e! \u0412\u0430\u0441 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 ID: {ref_id}\")     else:         context.bot.send_message(chat_id=update.effective_chat.id, text=\"\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e! \u0412\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u0441\u044e\u0434\u0430 \u0441\u0430\u043c\u0438.\")  def main() -> None:     updater = Updater(\"TOKEN\", use_context=True)      dispatcher = updater.dispatcher      dispatcher.add_handler(CommandHandler(\"start\", start))      updater.start_polling()      updater.idle()  if __name__ == '__main__':     main() <\/code><\/pre>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043a\u043e\u0434\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435, \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \/start \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d ID \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u0430. \u0417\u0430\u0442\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 ID \u0434\u043b\u044f \u0443\u0447\u0435\u0442\u0430 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u043e\u0432.<\/p>\n<p>\u0420\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0432 ID \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u0430 \u043a \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \/start \u0432 \u0441\u0441\u044b\u043b\u043a\u0435 \u043d\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: <a href=\"https:\/\/t.me\/your_bot?start=REF_ID\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/your_bot?start=REF_ID<\/a>.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>\/reflink<\/code>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430. \u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c:<\/p>\n<pre><code class=\"python\">from telegram import Update from telegram.ext import Updater, CommandHandler, CallbackContext  def reflink(update: Update, context: CallbackContext) -> None:     # \u0437\u0434\u0435\u0441\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 id \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     ref_id = update.effective_user.id     ref_link = f\"https:\/\/t.me\/your_bot?start={ref_id}\"     context.bot.send_message(chat_id=update.effective_chat.id, text=f\"\u0412\u0430\u0448\u0430 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430: {ref_link}\\n\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438.\")  def main() -> None:     updater = Updater(\"TOKEN\", use_context=True)      dispatcher = updater.dispatcher      dispatcher.add_handler(CommandHandler(\"reflink\", reflink))      updater.start_polling()      updater.idle()  if __name__ == '__main__':     main() ```<\/code><\/pre>\n<p>\u041d\u0443 \u0438 \u044f\u0441\u043d\u043e \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u043a\u0430\u043a \u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, SQLite \u0435\u0441\u043b\u0438 \u0432\u0430\u0448 \u0441\u0441\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b.<\/p>\n<pre><code class=\"python\">import sqlite3 from telegram import Update from telegram.ext import Updater, CommandHandler, CallbackContext  # \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442) conn = sqlite3.connect('referrals.db') cursor = conn.cursor()  # \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u0430\u0445, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0435\u0449\u0435 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 cursor.execute(\"\"\" CREATE TABLE IF NOT EXISTS referrals (     user_id INTEGER NOT NULL,     ref_id INTEGER NOT NULL ) \"\"\")  def start(update: Update, context: CallbackContext) -> None:     ref_id = update.message.text.split()[1] if len(update.message.text.split()) > 1 else None     if ref_id:         # \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u0435 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445         cursor.execute(\"INSERT INTO referrals (user_id, ref_id) VALUES (?, ?)\", (update.effective_user.id, ref_id))         conn.commit()         context.bot.send_message(chat_id=update.effective_chat.id, text=f\"\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e! \u0412\u0430\u0441 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 ID: {ref_id}\")     else:         context.bot.send_message(chat_id=update.effective_chat.id, text=\"\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e! \u0412\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u0441\u044e\u0434\u0430 \u0441\u0430\u043c\u0438.\")  def reflink(update: Update, context: CallbackContext) -> None:     ref_id = update.effective_user.id     ref_link = f\"https:\/\/t.me\/your_bot?start={ref_id}\"     context.bot.send_message(chat_id=update.effective_chat.id, text=f\"\u0412\u0430\u0448\u0430 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430: {ref_link}\\n\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438.\")  def main() -> None:     updater = Updater(\"TOKEN\", use_context=True)      dispatcher = updater.dispatcher      dispatcher.add_handler(CommandHandler(\"start\", start))     dispatcher.add_handler(CommandHandler(\"reflink\", reflink))      updater.start_polling()      updater.idle()  if __name__ == '__main__':     main() <\/code><\/pre>\n<p>\u0430 \u043d\u0443 \u0438 \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u0430\u043a \u0436\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043d\u0430\u0447\u0438\u0441\u043b\u044f\u0442\u044c 40% \u0437\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436 \u0438 10% \u043f\u043e\u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0439 \u0432\u043a\u0443\u0441 \u0441 \u0431\u0430\u043b\u0430\u043d\u0441\u0430\u043c\u0438 \u0438 \u044e\u0437\u0435\u0430\u0439\u0442\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u043a\u0440\u0447 \u0432\u043e\u0442<\/p>\n<pre><code class=\"python\">def process_payment(user_id, amount):     # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0431\u044b\u043b\u0438 \u043b\u0438 \u0443\u0436\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     cursor.execute(\"SELECT * FROM payments WHERE user_id = ?\", (user_id,))     previous_payments = cursor.fetchall()      # \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436, \u043d\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u043c 40% \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438     if not previous_payments:         commission = amount * 0.4     # \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436, \u043d\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u043c 10% \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438     else:         commission = amount * 0.1      # \u041d\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044e \u0440\u0435\u0444\u0435\u0440\u0435\u0440\u0443     cursor.execute(\"SELECT ref_id FROM referrals WHERE user_id = ?\", (user_id,))     ref_id = cursor.fetchone()     if ref_id:         cursor.execute(\"UPDATE users SET balance = balance + ? WHERE id = ?\", (commission, ref_id))      # \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0435 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445     cursor.execute(\"INSERT INTO payments (user_id, amount) VALUES (?, ?)\", (user_id, amount))     conn.commit() <\/code><\/pre>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u0431\u043e\u0442\u0430 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong><\/p>\n<p><a href=\"https:\/\/t.me\/blacktemple_space\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/blacktemple_space<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/810635\/\"> https:\/\/habr.com\/ru\/articles\/810635\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0438\u0449\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0443\u044e \u043c\u0430\u043d\u0443, \u043a\u0430\u043a \u0438 \u0447\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0422\u0413. <\/p>\n<p>\u0412 \u043c\u0430\u0440\u0442\u0435 2024 \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0448 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444 \u0437\u0430\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u043d\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u0441\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 \u0438 \u043c\u0435\u043d\u044c\u0448\u0435, \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u043b\u0438. \u041d\u0423 \u0438 \u0432 \u0446\u0435\u043b\u043e\u043c \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u043e.<\/p>\n<p>\u041f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u0443  &#8212; \u043f\u0440\u0438\u0432\u0435\u0434\u0438 \u0434\u0440\u0443\u0433\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438 40% \u043e\u0442 \u0435\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u0438 10% \u043f\u043e\u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u043e\u0442 \u0435\u0433\u043e \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0439. \u0427\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u043e, \u0442\u044b \u043c\u043e\u0436\u0435\u0448\u044c \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0434\u0430 \u0438 \u0435\u0449\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0441\u0440\u0435\u0434\u0441\u0442\u0432. \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u0437\u0430\u043f\u0435\u0440\u0442\u044b \u0432 \u0440\u0430\u043c\u043a\u0438 Telegram \u0438 \u043d\u0435 \u0438\u043c\u0435\u043b\u0438 \u043e\u043f\u044b\u0442\u0430 \u0432 \u044d\u0442\u043e\u043c, \u043c\u044b \u0437\u0430\u0434\u0430\u043b\u0438\u0441\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c &#8212; <strong>\u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0431\u043e\u0442\u0430<\/strong>? &#8212; \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 python <\/p>\n<pre><code class=\"python\">from telegram import Update from telegram.ext import Updater, CommandHandler, CallbackContext  def start(update: Update, context: CallbackContext) -> None:     ref_id = update.message.text.split()[1] if len(update.message.text.split()) > 1 else None     if ref_id:         # \u0437\u0434\u0435\u0441\u044c \u0443 \u0432\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u043e\u0434 \u0434\u043b\u044f \u0443\u0447\u0435\u0442\u0430 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a         context.bot.send_message(chat_id=update.effective_chat.id, text=f\"\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e! \u0412\u0430\u0441 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 ID: {ref_id}\")     else:         context.bot.send_message(chat_id=update.effective_chat.id, text=\"\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e! \u0412\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u0441\u044e\u0434\u0430 \u0441\u0430\u043c\u0438.\")  def main() -> None:     updater = Updater(\"TOKEN\", use_context=True)      dispatcher = updater.dispatcher      dispatcher.add_handler(CommandHandler(\"start\", start))      updater.start_polling()      updater.idle()  if __name__ == '__main__':     main() <\/code><\/pre>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043a\u043e\u0434\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435, \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \/start \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d ID \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u0430. \u0417\u0430\u0442\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 ID \u0434\u043b\u044f \u0443\u0447\u0435\u0442\u0430 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u043e\u0432.<\/p>\n<p>\u0420\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0432 ID \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u0430 \u043a \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \/start \u0432 \u0441\u0441\u044b\u043b\u043a\u0435 \u043d\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: <a href=\"https:\/\/t.me\/your_bot?start=REF_ID\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/your_bot?start=REF_ID<\/a>.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>\/reflink<\/code>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u043e\u0442\u0430. \u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c:<\/p>\n<pre><code class=\"python\">from telegram import Update from telegram.ext import Updater, CommandHandler, CallbackContext  def reflink(update: Update, context: CallbackContext) -> None:     # \u0437\u0434\u0435\u0441\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 id \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     ref_id = update.effective_user.id     ref_link = f\"https:\/\/t.me\/your_bot?start={ref_id}\"     context.bot.send_message(chat_id=update.effective_chat.id, text=f\"\u0412\u0430\u0448\u0430 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430: {ref_link}\\n\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438.\")  def main() -> None:     updater = Updater(\"TOKEN\", use_context=True)      dispatcher = updater.dispatcher      dispatcher.add_handler(CommandHandler(\"reflink\", reflink))      updater.start_polling()      updater.idle()  if __name__ == '__main__':     main() ```<\/code><\/pre>\n<p>\u041d\u0443 \u0438 \u044f\u0441\u043d\u043e \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u043a\u0430\u043a \u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, SQLite \u0435\u0441\u043b\u0438 \u0432\u0430\u0448 \u0441\u0441\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b.<\/p>\n<pre><code class=\"python\">import sqlite3 from telegram import Update from telegram.ext import Updater, CommandHandler, CallbackContext  # \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442) conn = sqlite3.connect('referrals.db') cursor = conn.cursor()  # \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u0430\u0445, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0435\u0449\u0435 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 cursor.execute(\"\"\" CREATE TABLE IF NOT EXISTS referrals (     user_id INTEGER NOT NULL,     ref_id INTEGER NOT NULL ) \"\"\")  def start(update: Update, context: CallbackContext) -> None:     ref_id = update.message.text.split()[1] if len(update.message.text.split()) > 1 else None     if ref_id:         # \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u0435 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445         cursor.execute(\"INSERT INTO referrals (user_id, ref_id) VALUES (?, ?)\", (update.effective_user.id, ref_id))         conn.commit()         context.bot.send_message(chat_id=update.effective_chat.id, text=f\"\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e! \u0412\u0430\u0441 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441 ID: {ref_id}\")     else:         context.bot.send_message(chat_id=update.effective_chat.id, text=\"\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e! \u0412\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u0441\u044e\u0434\u0430 \u0441\u0430\u043c\u0438.\")  def reflink(update: Update, context: CallbackContext) -> None:     ref_id = update.effective_user.id     ref_link = f\"https:\/\/t.me\/your_bot?start={ref_id}\"     context.bot.send_message(chat_id=update.effective_chat.id, text=f\"\u0412\u0430\u0448\u0430 \u0440\u0435\u0444\u0435\u0440\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430: {ref_link}\\n\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438.\")  def main() -> None:     updater = Updater(\"TOKEN\", use_context=True)      dispatcher = updater.dispatcher      dispatcher.add_handler(CommandHandler(\"start\", start))     dispatcher.add_handler(CommandHandler(\"reflink\", reflink))      updater.start_polling()      updater.idle()  if __name__ == '__main__':     main() <\/code><\/pre>\n<p>\u0430 \u043d\u0443 \u0438 \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u0430\u043a \u0436\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043d\u0430\u0447\u0438\u0441\u043b\u044f\u0442\u044c 40% \u0437\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436 \u0438 10% \u043f\u043e\u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0439 \u0432\u043a\u0443\u0441 \u0441 \u0431\u0430\u043b\u0430\u043d\u0441\u0430\u043c\u0438 \u0438 \u044e\u0437\u0435\u0430\u0439\u0442\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u043a\u0440\u0447 \u0432\u043e\u0442<\/p>\n<pre><code class=\"python\">def process_payment(user_id, amount):     # \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0431\u044b\u043b\u0438 \u043b\u0438 \u0443\u0436\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f     cursor.execute(\"SELECT * FROM payments WHERE user_id = ?\", (user_id,))     previous_payments = cursor.fetchall()      # \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436, \u043d\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u043c 40% \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438     if not previous_payments:         commission = amount * 0.4     # \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043b\u0430\u0442\u0435\u0436, \u043d\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u043c 10% \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438     else:         commission = amount * 0.1      # \u041d\u0430\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044e \u0440\u0435\u0444\u0435\u0440\u0435\u0440\u0443     cursor.execute(\"SELECT ref_id FROM referrals WHERE user_id = ?\", (user_id,))     ref_id = cursor.fetchone()     if ref_id:         cursor.execute(\"UPDATE users SET balance = balance + ? WHERE id = ?\", (commission, ref_id))      # \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0435 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445     cursor.execute(\"INSERT INTO payments (user_id, amount) VALUES (?, ?)\", (user_id, amount))     conn.commit() <\/code><\/pre>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u0431\u043e\u0442\u0430 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong><\/p>\n<p><a href=\"https:\/\/t.me\/blacktemple_space\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/blacktemple_space<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/810635\/\"> https:\/\/habr.com\/ru\/articles\/810635\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-374765","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/374765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=374765"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/374765\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=374765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=374765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=374765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}