Update chatbot/plugins/payments.py
Browse files- chatbot/plugins/payments.py +39 -3
chatbot/plugins/payments.py
CHANGED
@@ -5,20 +5,56 @@ from pyrogram.types import *
|
|
5 |
from database import db
|
6 |
from datetime import datetime as dt, timedelta
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
@Client.on_callback_query(filters.regex(r"^get_premium$"))
|
9 |
async def get_premiums(client, callback):
|
10 |
keyboard = InlineKeyboardMarkup(
|
11 |
[
|
12 |
[
|
13 |
-
InlineKeyboardButton("
|
14 |
-
InlineKeyboardButton("
|
|
|
|
|
|
|
15 |
],
|
16 |
[
|
17 |
InlineKeyboardButton(f"β Closed", callback_data="closedd")
|
18 |
]
|
19 |
]
|
20 |
)
|
21 |
-
return await callback.
|
|
|
|
|
|
|
22 |
|
23 |
@Client.on_callback_query(filters.regex(r"^buy_premium_(monthly|yearly)$"))
|
24 |
async def premium_purchase(client, callback):
|
|
|
5 |
from database import db
|
6 |
from datetime import datetime as dt, timedelta
|
7 |
|
8 |
+
PLAN_PREMIUM = """
|
9 |
+
**β¨ Premium Subscription Plans**
|
10 |
+
|
11 |
+
**πΉ Free Tier**
|
12 |
+
*(For new users and testing)*
|
13 |
+
- **πΌοΈ Image Credits**: 5/day (resets at midnight UTC)
|
14 |
+
- **β‘ Features**: Basic generation only
|
15 |
+
- **β οΈ Restrictions**:
|
16 |
+
- Blacklist keyword scanning enabled
|
17 |
+
- Account freeze possible for violations
|
18 |
+
|
19 |
+
**π Monthly Premium**
|
20 |
+
**Rp 50,000** (~$3.50/month)
|
21 |
+
- **πΌοΈ Credits**: 50/day (10Γ free tier)
|
22 |
+
- **π¨ Advanced Tools**:
|
23 |
+
- `--edit-images` full access
|
24 |
+
- **π‘οΈ Protection**:
|
25 |
+
- Anti-freeze guarantee
|
26 |
+
- Whitelisted from blacklists
|
27 |
+
- **π Billing**: Auto-renews monthly
|
28 |
+
|
29 |
+
**π Yearly Premium**
|
30 |
+
**Rp 825,854** (~$58/year - **35% discount**)
|
31 |
+
β
**All Monthly benefits PLUS**:
|
32 |
+
- **π¨π» VIP Support**: Direct developer contact
|
33 |
+
- **π Early Access**: Beta features
|
34 |
+
- **πΈ Best Value**: Only Rp 68,821/month
|
35 |
+
|
36 |
+
"""
|
37 |
+
|
38 |
@Client.on_callback_query(filters.regex(r"^get_premium$"))
|
39 |
async def get_premiums(client, callback):
|
40 |
keyboard = InlineKeyboardMarkup(
|
41 |
[
|
42 |
[
|
43 |
+
InlineKeyboardButton("π³ Buy Monthly", callback_data="buy_premium_monthly"),
|
44 |
+
InlineKeyboardButton("π Buy Yearly", callback_data="buy_premium_yearly"),
|
45 |
+
],
|
46 |
+
[
|
47 |
+
InlineKeyboardButton("βοΈ Contact Support", url="https://t.me/xpushz"),
|
48 |
],
|
49 |
[
|
50 |
InlineKeyboardButton(f"β Closed", callback_data="closedd")
|
51 |
]
|
52 |
]
|
53 |
)
|
54 |
+
return await callback.message.edit_text(
|
55 |
+
PLAN_PREMIUM,
|
56 |
+
reply_markup=keyboard
|
57 |
+
)
|
58 |
|
59 |
@Client.on_callback_query(filters.regex(r"^buy_premium_(monthly|yearly)$"))
|
60 |
async def premium_purchase(client, callback):
|