Skip to content

Commit

Permalink
Added Stars to skip mail verification
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielRF committed Jul 25, 2024
1 parent 626467d commit 7a52a72
Show file tree
Hide file tree
Showing 27 changed files with 1,176 additions and 38 deletions.
331 changes: 311 additions & 20 deletions bot.py

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions create_premium_table.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import configparser
import datetime
import logging
import logging.handlers
import sqlite3

if __name__ == "__main__":
config = configparser.ConfigParser()
config.sections()
BOT_CONFIG_FILE = "kindle.conf"
config.read(BOT_CONFIG_FILE)
log_file = config["DEFAULT"]["logfile"]
db = config["SQLITE3"]["data_base"]
table = 'premium'

LOG_INFO_FILE = log_file
logger_info = logging.getLogger("InfoLogger")
logger_info.setLevel(logging.DEBUG)
handler_info = logging.handlers.RotatingFileHandler(
LOG_INFO_FILE, maxBytes=10240, backupCount=5, encoding="utf-8"
)
logger_info.addHandler(handler_info)

conn = sqlite3.connect(db)

cursor = conn.cursor()

aux = (
"""CREATE TABLE {} (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
chatid TEXT NOT NULL,
saldo TEXT);
"""
).format(table)

aux2 = ('''SELECT * FROM "{}"''').format(table)

try:
cursor.execute(aux)
logger_info.info(
str(datetime.datetime.now()) + " Tabela usuarios criada"
)
except:
cursor.execute(aux2)
usuarios = cursor.fetchall()
for user in usuarios:
print(user)
pass

conn.commit()
conn.close()
33 changes: 33 additions & 0 deletions i18n/bot.ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,36 @@ ar:
btn_help: Help and FAQ
btn_info: More info
btn_donate: Donate
balance: 🌟 الإرساليات المباشرة المتبقية
terms_agree: ✅ موافق
terms_disagree: ❌ غير موافق
terms_cancel: ↪️ تخطي
premium_intro: |
<b>@Send2KindleBot</b>
🤯 <b>ادفع بنجوم تيليجرام ⭐️ وأرسل دون التحقق من البريد الإلكتروني!</b>
أضف العنوان أدناه كـ <i>بريد إلكتروني معتمد لإرسال الوثائق الشخصية</i> في حسابك على أمازون.
<code>{}@send.grf.xyz</code>
❗️ <b>طالما لديك رصيد، سيتم استخدام البريد الإلكتروني أعلاه بشكل إلزامي للإرسال</b>.
🆓 بتأكيد أدناه، سيتم توفير رصيد <b>{} إرساليات اختبارية</b>.
قم بشراء المزيد من الإرساليات التي لا تتطلب التأكيد بإرسال الأمر /stars.
⚠️ <b>سيعمل البوت بشكل طبيعي وسيبقى مجانيًا عندما يكون الرصيد 0. ومع ذلك، سيعود للمطالبة بالتحقق في كل إرسال</b>.
premium: |
لإضافة
premium_agreed: |
❗️ <b>تذكر الاحتفاظ بالبريد الإلكتروني أدناه كمعتمد</b>:
<code>{}@send.grf.xyz</code>
<b>كل نجمة ستتيح لك إجراء {} إرساليات</b>.
اختر أدناه الكمية التي ترغب في شرائها.
إذا كنت لا ترغب في الشراء الآن، انقر على <code>تخطي</code>.
btn_stars: أرسل بدون تحقق
payment_title: "{} يرسل"
payment_description: "دفعة بقيمة {} نجوم، تعادل {} إرسال من العنوان {}@send.grf.xyz."

33 changes: 33 additions & 0 deletions i18n/bot.bm-ms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,36 @@ bm-ms:
btn_help: Help and FAQ
btn_info: More info
btn_donate: Donate
balance: 🌟 Penghantaran langsung yang tinggal
terms_agree: ✅ Setuju
terms_disagree: ❌ Tidak Setuju
terms_cancel: ↪️ Langkau
premium_intro: |
<b>@Send2KindleBot</b>
🤯 <b>Bayar dengan Bintang Telegram ⭐️ dan hantar tanpa pengesahan e-mel!</b>
Tambahkan alamat di bawah sebagai <i>e-mel yang diluluskan untuk menghantar dokumen peribadi</i> dalam akaun Amazon anda.
<code>{}@send.grf.xyz</code>
❗️ <b>Semasa anda mempunyai baki, penghantaran akan menggunakan e-mel di atas secara mandatori</b>.
🆓 Dengan mengesahkan di bawah, baki <b>{} penghantaran ujian</b> akan tersedia.
Beli lebih banyak penghantaran tanpa pengesahan dengan menghantar perintah /stars.
⚠️ <b>Bot akan berfungsi seperti biasa dan kekal percuma apabila baki adalah 0. Walau bagaimanapun, ia akan kembali memerlukan pengesahan untuk setiap penghantaran</b>.
premium: |
Untuk menambah
premium_agreed: |
❗️ <b>Ingat untuk mengekalkan e-mel di bawah sebagai diluluskan</b>:
<code>{}@send.grf.xyz</code>
<b>Setiap bintang akan membolehkan anda membuat {} penghantaran</b>.
Pilih di bawah jumlah yang ingin anda beli.
Jika anda tidak mahu membeli sekarang, klik <code>Langkau</code>.
btn_stars: Hantar tanpa pengesahan
payment_title: "{} menghantar"
payment_description: "Pembayaran bernilai {} bintang, bersamaan dengan {} penghantaran dar
33 changes: 33 additions & 0 deletions i18n/bot.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,36 @@ de:
btn_help: Help and FAQ
btn_info: More info
btn_donate: Donate
balance: 🌟 Verbleibende Direktversendungen
terms_agree: ✅ Zustimmen
terms_disagree: ❌ Ablehnen
terms_cancel: ↪️ Überspringen
premium_intro: |
<b>@Send2KindleBot</b>
🤯 <b>Zahlen Sie mit Telegram-Sternen ⭐️ und senden Sie ohne E-Mail-Verifizierung!</b>
Fügen Sie die untenstehende Adresse als <i>genehmigte E-Mail für das Senden persönlicher Dokumente</i> in Ihrem Amazon-Konto hinzu.
<code>{}@send.grf.xyz</code>
❗️ <b>Solange Sie Guthaben haben, werden die Sendungen zwingend die oben genannte E-Mail-Adresse verwenden</b>.
🆓 Durch die Bestätigung unten wird ein Guthaben von <b>{} Testsenden</b> verfügbar gemacht.
Kaufen Sie weitere Sendungen ohne Bestätigung durch Eingabe des Befehls /stars.
⚠️ <b>Der Bot wird normal funktionieren und kostenlos bleiben, wenn das Guthaben auf 0 ist. Es wird jedoch wieder eine Verifizierung für jede Sendung erforderlich sein</b>.
premium: |
Hinzufügen
premium_agreed: |
❗️ <b>Denken Sie daran, die untenstehende E-Mail genehmigt zu lassen</b>:
<code>{}@send.grf.xyz</code>
<b>Jeder Stern ermöglicht es Ihnen, {} Sendungen durchzuführen</b>.
Wählen Sie unten die Menge aus, die Sie kaufen möchten.
Wenn Sie jetzt nicht kaufen möchten, klicken Sie auf <code>Überspringen</code>.
btn_stars: Ohne Überprüfung senden
payment_title: "{} sendet"
payment_description: "Zahlung im Wert von {} Sternen, entsprechend {} Sendungen von der Adresse {}@send.grf.xyz."

33 changes: 33 additions & 0 deletions i18n/bot.en-in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,36 @@ hi:
btn_help: Help and FAQ
btn_info: More info
btn_donate: Donate
balance: 🌟 शेष डायरेक्ट सेंड्स
terms_agree: ✅ सहमत
terms_disagree: ❌ असहमत
terms_cancel: ↪️ छोड़ें
premium_intro: |
<b>@Send2KindleBot</b>
🤯 <b>टेलीग्राम स्टार्स ⭐️ से भुगतान करें और ईमेल सत्यापन के बिना भेजें!</b>
अपने Amazon खाते में नीचे दिए गए पते को <i>व्यक्तिगत दस्तावेज़ भेजने के लिए अनुमोदित ईमेल</i> के रूप में जोड़ें।
<code>{}@send.grf.xyz</code>
❗️ <b>जब तक आपके पास बैलेंस है, तब तक भेजने के लिए उपरोक्त ईमेल का अनिवार्य रूप से उपयोग किया जाएगा</b>।
🆓 नीचे पुष्टि करने पर, <b>{} परीक्षण भेजने का बैलेंस</b> उपलब्ध कराया जाएगा।
बिना पुष्टि के अधिक भेजने के लिए /stars कमांड भेजें।
⚠️ <b>बैलेंस 0 होने पर बॉट सामान्य रूप से कार्य करेगा और निःशुल्क रहेगा। हालांकि, यह प्रत्येक भेजने के लिए पुनः सत्यापन की आवश्यकता होगी</b>।
premium: |
जोड़ने के लिए
premium_agreed: |
❗️ <b>नीचे दिए गए ईमेल को अनुमोदित रखना याद रखें</b>:
<code>{}@send.grf.xyz</code>
<b>प्रत्येक स्टार आपको {} भेजने की अनुमति देगा</b>।
नीचे वह मात्रा चुनें जिसे आप खरीदना चाहते हैं।
यदि आप अभी खरीदना नहीं चाहते हैं, तो <code>छोड़ें</code> पर क्लिक करें।
btn_stars: सत्यापन के बिना भेजें
payment_title: "{} भेजता है"
payment_description: "भुगतान {} सितारों के मूल्य का, जो {} भेजों के बराबर है, पते {}@send.grf.xyz से।"

30 changes: 30 additions & 0 deletions i18n/bot.en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,33 @@ en-us:
btn_help: Help and FAQ
btn_info: More info
btn_donate: Donate
balance: 🌟 Remaining direct sends
terms_agree: ✅ Agree
terms_disagree: ❌ Disagree
terms_cancel: ↪️ Skip
premium_intro: |
<b>@Send2KindleBot</b>
🤯 <b>Pay with Telegram Stars ⭐️ and send without email verification!</b>
Add the address below as an <i>approved email address for sending personal documents</i> in your Amazon account.
<code>{}@send.grf.xyz</code>
❗️ <b>As long as you have a balance, sends will necessarily use the email above</b>.
🆓 By confirming below, you will be granted a balance of <b>{} test sends</b>.
Purchase more sends that don't require confirmation by sending the command /stars.
⚠️ <b>The bot will continue to work normally and remain free when the balance is 0. However, it will revert to requiring verification for each send</b>.
premium_agreed: |
❗️ <b>Remember to keep the email below approved</b>:
<code>{}@send.grf.xyz</code>
<b>Each star will allow you to make {} sends</b>.
Choose below the amount you want to purchase.
If you do not want to purchase now, click <code>Skip</code>.
btn_stars: Send without verification
payment_title: "{} sends"
payment_description: "Payment worth {} stars, corresponding to {} sends from the address {}@send.grf.xyz."
34 changes: 34 additions & 0 deletions i18n/bot.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,37 @@ es:
btn_help: Ayuda y Faq
btn_info: Más información
btn_donate: Donar
balance: 🌟 Envíos directos restantes
terms_agree: ✅ Aceptar
terms_disagree: ❌ No aceptar
terms_cancel: ↪️ Omitir
premium_intro: |
<b>@Send2KindleBot</b>
🤯 <b>¡Paga con Estrellas de Telegram ⭐️ y envía sin verificación de correo electrónico!</b>
Añade la dirección de abajo como <i>correo electrónico aprobado para el envío de documentos personales</i> en tu cuenta de Amazon.
<code>{}@send.grf.xyz</code>
❗️ <b>Mientras tengas saldo, los envíos usarán obligatoriamente el correo electrónico de arriba</b>.
🆓 Al confirmar abajo, estará disponible un saldo de <b>{} envíos de prueba</b>.
Compra más envíos sin confirmación enviando el comando /stars.
⚠️ <b>El bot funcionará normalmente y seguirá siendo gratuito cuando el saldo sea 0. Sin embargo, volverá a requerir verificación para cada envío</b>.
premium: |
Para agregar
premium_agreed: |
❗️ <b>Recuerda mantener el correo electrónico de abajo aprobado</b>:
<code>{}@send.grf.xyz</code>
<b>Cada estrella te permitirá realizar {} envíos</b>.
Elige abajo la cantidad que deseas comprar.
Si no deseas comprar ahora, haz clic en <code>Omitir</code>.
premium_quantity: "⭐️{}"
btn_stars: Enviar sin verificación
payment_title: "{} envíos"
payment_description: "Pago por valor de {} estrellas, correspondiente a {} envíos desde la dirección {}@send.grf.xyz."

33 changes: 33 additions & 0 deletions i18n/bot.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,36 @@ fr:
btn_help: Help and FAQ
btn_info: More info
btn_donate: Faire un don
balance: 🌟 Envois directs restants
terms_agree: ✅ Accepter
terms_disagree: ❌ Refuser
terms_cancel: ↪️ Passer
premium_intro: |
<b>@Send2KindleBot</b>
🤯 <b>Payer avec des Étoiles Telegram ⭐️ et envoyer sans vérification par e-mail !</b>
Ajoutez l'adresse ci-dessous comme <i>e-mail approuvé pour l'envoi de documents personnels</i> dans votre compte Amazon.
<code>{}@send.grf.xyz</code>
❗️ <b>Tant que vous avez du solde, les envois utiliseront obligatoirement l'e-mail ci-dessus</b>.
🆓 En confirmant ci-dessous, un solde de <b>{} envois de test</b> sera disponible.
Achetez plus d'envois sans confirmation en envoyant la commande /stars.
⚠️ <b>Le bot fonctionnera normalement et restera gratuit lorsque le solde est à 0. Cependant, il exigera à nouveau une vérification pour chaque envoi</b>.
premium: |
Ajouter
premium_agreed: |
❗️ <b>Souvenez-vous de garder l'e-mail ci-dessous approuvé</b> :
<code>{}@send.grf.xyz</code>
<b>Chaque étoile vous permettra de faire {} envois</b>.
Choisissez ci-dessous la quantité que vous souhaitez acheter.
Si vous ne souhaitez pas acheter maintenant, cliquez sur <code>Passer</code>.
btn_stars: Envoyer sans vérification
payment_title: "{} envoie"
payment_description: "Paiement d'une valeur de {} étoiles, correspondant à {} envois depuis l'adresse {}@send.grf.xyz."

32 changes: 32 additions & 0 deletions i18n/bot.hi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,35 @@ hi:
btn_help: Help and FAQ
btn_info: More info
btn_donate: Donate
balance: 🌟 शेष डायरेक्ट सेंड्स
terms_agree: ✅ सहमत
terms_disagree: ❌ असहमत
terms_cancel: ↪️ छोड़ें
premium_intro: |
<b>@Send2KindleBot</b>
🤯 <b>टेलीग्राम स्टार्स ⭐️ के साथ भुगतान करें और ईमेल सत्यापन के बिना भेजें!</b>
अपने Amazon खाते में नीचे दिए गए पते को <i>व्यक्तिगत दस्तावेज़ भेजने के लिए अनुमोदित ईमेल</i> के रूप में जोड़ें।
<code>{}@send.grf.xyz</code>
❗️ <b>जब तक आपके पास बैलेंस है, तब तक भेजने के लिए उपरोक्त ईमेल का अनिवार्य रूप से उपयोग किया जाएगा</b>।
🆓 नीचे पुष्टि करने पर, <b>{} परीक्षण भेजने का बैलेंस</b> उपलब्ध कराया जाएगा।
बिना पुष्टि के अधिक भेजने के लिए /stars कमांड भेजें।
⚠️ <b>बैलेंस 0 होने पर बॉट सामान्य रूप से कार्य करेगा और निःशुल्क रहेगा। हालांकि, यह प्रत्येक भेजने के लिए पुनः सत्यापन की आवश्यकता होगी</b>।
premium: |
जोड़ने के लिए
premium_agreed: |
❗️ <b>नीचे दिए गए ईमेल को अनुमोदित रखना याद रखें</b>:
<code>{}@send.grf.xyz</code>
<b>प्रत्येक स्टार आपको {} भेजने की अनुमति देगा</b>।
नीचे वह मात्रा चुनें जिसे आप खरीदना चाहते हैं।
यदि आप अभी खरीदना नहीं चाहते हैं, तो <code>छोड़ें</code> पर क्लिक करें।
btn_stars: सत्यापन के बिना भेजें
payment_title: "{} भेजता है"
payment_description: "{} सितारों के मूल्य का भुगतान, जो {} भेजने के बराबर है, पते {}@send.grf.xyz से।"
33 changes: 33 additions & 0 deletions i18n/bot.id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,36 @@ id:
btn_help: Help and FAQ
btn_info: More info
btn_donate: Donasi
balance: 🌟 Kiriman langsung yang tersisa
terms_agree: ✅ Setuju
terms_disagree: ❌ Tidak setuju
terms_cancel: ↪️ Lewati
premium_intro: |
<b>@Send2KindleBot</b>
🤯 <b>Bayar dengan Bintang Telegram ⭐️ dan kirim tanpa verifikasi email!</b>
Tambahkan alamat di bawah ini sebagai <i>email yang disetujui untuk mengirim dokumen pribadi</i> di akun Amazon Anda.
<code>{}@send.grf.xyz</code>
❗️ <b>Selama Anda memiliki saldo, kiriman akan wajib menggunakan email di atas</b>.
🆓 Dengan mengonfirmasi di bawah ini, saldo <b>{} kiriman uji</b> akan tersedia.
Beli lebih banyak kiriman tanpa konfirmasi dengan mengirimkan perintah /stars.
⚠️ <b>Bot akan berfungsi normal dan tetap gratis saat saldo mencapai 0. Namun, bot akan memerlukan verifikasi untuk setiap kiriman lagi</b>.
premium: |
Untuk menambah
premium_agreed: |
❗️ <b>Ingat untuk menjaga email di bawah ini tetap disetujui</b>:
<code>{}@send.grf.xyz</code>
<b>Setiap bintang akan memungkinkan Anda melakukan {} kiriman</b>.
Pilih di bawah jumlah yang ingin Anda beli.
Jika Anda tidak ingin membeli sekarang, klik <code>Lewati</code>.
btn_stars: Kirim tanpa verifikasi
payment_title: "{} mengirim"
payment_description: "Pembayaran senilai {} bintang, setara dengan {} kiriman dari alamat {}@send.grf.xyz."

Loading

0 comments on commit 7a52a72

Please sign in to comment.