forked from szsupunma/Premium-Accounts-BOT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
support.py
65 lines (62 loc) · 2.84 KB
/
support.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from bot import app,ADMIN,BOT_USERNAME
from pyrogram import filters, Client, idle
from pyrogram.types import ForceReply,CallbackQuery,InlineKeyboardMarkup, InlineKeyboardButton, Message
from pyrogram.errors import UserNotParticipant,FloodWait,PeerIdInvalid
import random
from config import ADDS,keyboard
async def acc_provide(_, m: Message, help_option: str):
chat_id = int(help_option.split("_")[1])
name = ADMIN
acc= help_option.split("_")[2]
m = await app.send_message(
chat_id=name,
text="Enter **Email** of acoount",reply_markup=ForceReply(selective=True))
point = await app.listen(name, filters=None, timeout=60)
await m.delete()
x = await app.send_message(
chat_id=name,
text="Enter **password** of account",reply_markup=ForceReply(selective=True))
sems = await app.listen(name, filters=None, timeout=60)
await app.send_message(
chat_id=name,
text="Done! payment sucsessfull✅")
await app.send_message(
chat_id=-1001518620432,
text=(
f"✅ ** New Withdraw Paid**\n\n"
f"🆔 **User id**: `{chat_id}`\n\n"
f"💰 **Amount **: 5 coin\n\n"
f"📦 **Account type**:{acc}\n\n"
f"🍃 **Bot** : [@{BOT_USERNAME}](https://t.me/{BOT_USERNAME}?start=1467358214)\n\n"
f"[❗️ ADD](https://t.me/Mafiapayment/43) : {random.choice(ADDS)}"
),disable_web_page_preview=True)
await x.delete()
await app.send_sticker(chat_id,"CAACAgEAAxkBAAEGVaVibOE9cIWB7CtNX4kdJnH9_M9M8wAC6wcAAuN4BAABnwXByysQy_ceBA",reply_markup=keyboard)
await app.send_message(
chat_id=chat_id,
text=(
f"💬 Hello sir this your {acc} Account \n\n"
f"📧 **Email** : `{point.text}`\n"
f"🔐 **Password** :`{sems.text}`\n\n"
f"[❗️ ADD](https://t.me/Mafiapayment/43) : {random.choice(ADDS)}"
),disable_web_page_preview=True)
return
async def contact_admin(_, m: Message, help_option: str):
chat_id = int(help_option.split("_")[1])
question = help_option.split("_")[2]
name = ADMIN
m = await app.send_message(
chat_id=name,
text="Enter message here",reply_markup=ForceReply(selective=True))
point = await app.listen(name, filters=None, timeout=60)
await app.send_message(
chat_id=name,
text="Done! Message was sent user DM.")
await m.delete()
await app.send_message(
chat_id=chat_id,
text=(f"""
💭 <u>**Message From Admin**</u>
🔹 Question:{question}
🔹 Answer : {point.text} """))
return