-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuttons.py
More file actions
95 lines (80 loc) · 2.97 KB
/
buttons.py
File metadata and controls
95 lines (80 loc) · 2.97 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
from pyrogram.types import (
ReplyKeyboardMarkup,
InlineKeyboardMarkup,
InlineKeyboardButton,
ReplyKeyboardRemove,
)
START_BUTTON = [
[
InlineKeyboardButton(
text="💻Software Channel💻", url="https://t.me/+a_rlC_BtkEpmZmVk"
)
],
[
InlineKeyboardButton(
text="🎬Movie Channel🎬", url="https://t.me/+vA7ql6uZ0ZMxZjU8"
)
]
]
ABOUT_BUTTON = [
[
InlineKeyboardButton(text="👨💻 Owner 👨💻", url="https://shadoworbs.t.me"),
InlineKeyboardButton(text="⌨️ Language ⌨️", url="https://python.org"),
],
[
InlineKeyboardButton(text="📚 Library 📚", url="https://pyrogram.org"),
InlineKeyboardButton(text="ℹ️ Repo ℹ️", url="https://github.com/shadoworbs/code"),
],
]
DL_COMPLETE_BUTTON = START_BUTTON
REPLY_BUTTONS = [[("Hi"), ("Hello")], [("How is work?"), ("How are you?")]]
MAIN_PAGE_TEXT = "Do you wish to start reading?"
MAIN_PAGE_BUTTON = [
[InlineKeyboardButton("Start Reading ▶️", callback_data="page1")],
[InlineKeyboardButton("CANCEL", callback_data="cancel")],
]
PAGE1_TEXT = "This is the first page, select a resolution."
PAGE1_BUTTON = [
[
InlineKeyboardButton("⬅️ BACK", callback_data="back_to_main_menu"),
InlineKeyboardButton("PAGE 2 ➡️", callback_data="page2"),
],
[InlineKeyboardButton("CANCEL", callback_data="cancel")],
]
PAGE2_TEXT = "This is the second page, select another thing."
PAGE2_BUTTON = [
[
InlineKeyboardButton("⬅️ BACK", callback_data="back_to_page_1"),
InlineKeyboardButton("PAGE 3 ➡️", callback_data="page3"),
],
[InlineKeyboardButton("CANCEL", callback_data="cancel")],
]
PAGE3_TEXT = "Now we are on the third page, select the height."
PAGE3_BUTTON = [
[
InlineKeyboardButton("⬅️ BACK", callback_data="back_to_page_2"),
InlineKeyboardButton("💠 MAIN MENU 💠", callback_data="back_to_main_menu"),
],
[InlineKeyboardButton("CANCEL", callback_data="cancel")],
]
VIDEO_HEIGHT_TEXT = (
"Youtube link detected!\nPlease select a video quality.\nTimout 120 secs [2 mins]"
)
VIDEO_HEIGHT_BUTTON = [
[InlineKeyboardButton("140p", callback_data="140")],
[InlineKeyboardButton("240p", callback_data="240")],
[InlineKeyboardButton("270p", callback_data="270")],
[InlineKeyboardButton("360p [SD]", callback_data="360")],
[InlineKeyboardButton("480p [SD]", callback_data="480")],
[InlineKeyboardButton("540p", callback_data="540")],
[InlineKeyboardButton("640p", callback_data="640")],
[InlineKeyboardButton("720p [HD]", callback_data="720")],
[InlineKeyboardButton("1080 [HD]", callback_data="1080")],
]
MEMBERSHIP_BUTTONS = [
[
InlineKeyboardButton("➡️ Software Channel", url="SOFTWARE_CHANNEL_LINK"),
InlineKeyboardButton("➡️ Movie Channel", url="MOVIE_CHANNEL_LINK"),
],
[InlineKeyboardButton("🔄 Retry", callback_data="retry_start")],
]