File size: 7,736 Bytes
80287e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
from pyrogram import  filters
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup

from Devine.utils.fonts import Fonts
from Devine import app

@app.on_message(filters.command(["font", "fonts"]))
async def style_buttons(c, m, cb=False):
    text = m.text.split(' ',1)[1]
    buttons = [
        [
            InlineKeyboardButton("๐—ฆ๐—ฎ๐—ป๐˜€", callback_data="style+sans"),
            InlineKeyboardButton("๐™Ž๐™–๐™ฃ๐™จ", callback_data="style+slant_sans"),
            InlineKeyboardButton("๐–ฒ๐–บ๐—‡๐—Œ", callback_data="style+sim"),
        ],
        [
            InlineKeyboardButton("๐˜š๐˜ข๐˜ฏ๐˜ด", callback_data="style+slant"),
            InlineKeyboardButton("๐’๐ž๐ซ๐ข๐Ÿ", callback_data="style+serif"),
            InlineKeyboardButton("๐‘บ๐’†๐’“๐’Š๐’‡", callback_data="style+bold_cool"),
        ],
        [
            InlineKeyboardButton("๐‘†๐‘’๐‘Ÿ๐‘–๐‘“", callback_data="style+cool"),
            InlineKeyboardButton("๐“ˆ๐’ธ๐“‡๐’พ๐“…๐“‰", callback_data="style+script"),
            InlineKeyboardButton("๐“ผ๐“ฌ๐“ป๐“ฒ๐“น๐“ฝ", callback_data="style+script_bolt"),
        ],
        [
            InlineKeyboardButton("Sแดแด€สŸสŸ Cแด€แด˜s", callback_data="style+small_cap"),
            InlineKeyboardButton("๐Ÿ…’๏ธŽ๐Ÿ…˜๏ธŽ๐Ÿ…ก๏ธŽ๐Ÿ…’๏ธŽ๐Ÿ…›๏ธŽ๐Ÿ…”๏ธŽ๐Ÿ…ข๏ธŽ", callback_data="style+circle_dark"),
            InlineKeyboardButton("โ’ธ๏ธŽโ’พ๏ธŽโ“‡๏ธŽโ’ธ๏ธŽโ“๏ธŽโ’บ๏ธŽโ“ˆ๏ธŽ", callback_data="style+circles"),
        ],
        [
            InlineKeyboardButton("๐•ฒ๐–”๐–™๐–๐–Ž๐–ˆ", callback_data="style+gothic_bolt"),
            InlineKeyboardButton("๐”Š๐”ฌ๐”ฑ๐”ฅ๐”ฆ๐” ", callback_data="style+gothic"),
            InlineKeyboardButton("แต—โฑโฟสธ", callback_data="style+tiny"),
        ],
        [
            InlineKeyboardButton("๐šƒ๐šข๐š™๐šŽ๐š ๐š›๐š’๐š๐šŽ๐š›", callback_data="style+typewriter"),
            InlineKeyboardButton("๐•†๐•ฆ๐•ฅ๐•๐•š๐•Ÿ๐•–", callback_data="style+outline"),
            InlineKeyboardButton("แ‘•Oแ—ฐIแ‘•", callback_data="style+comic"),
        ],
        [
            InlineKeyboardButton("Cอกอœlอกอœoอกอœuอกอœdอกอœsอกอœ", callback_data="style+cloud"),
            InlineKeyboardButton("Hฬ†ฬˆaฬ†ฬˆpฬ†ฬˆpฬ†ฬˆyฬ†ฬˆ", callback_data="style+happy"),
            InlineKeyboardButton("Sฬ‘ฬˆaฬ‘ฬˆdฬ‘ฬˆ", callback_data="style+sad"),
        ],
        [
            InlineKeyboardButton ("แด„สŸแดsแด‡",callback_data="close_reply"),InlineKeyboardButton ("ษดแด‡xแด›", callback_data="nxt")],
    ]
    if not cb:
        await m.reply_text(
            f"{text}", reply_markup=InlineKeyboardMarkup(buttons), quote=True
        )
    else:
        await m.answer()
        await m.message.edit_reply_markup(InlineKeyboardMarkup(buttons))


@app.on_callback_query(filters.regex("^nxt"))
async def nxt(c, m):
    if m.data == "nxt":
        buttons = [
            [
                InlineKeyboardButton("๐Ÿ‡ธโ€Š๐Ÿ‡ตโ€Š๐Ÿ‡ชโ€Š๐Ÿ‡จโ€Š๐Ÿ‡ฎโ€Š๐Ÿ‡ฆโ€Š๐Ÿ‡ฑโ€Š", callback_data="style+special"),
                InlineKeyboardButton("๐Ÿ…‚๐Ÿ…€๐Ÿ…„๐Ÿ„ฐ๐Ÿ…๐Ÿ„ด๐Ÿ…‚", callback_data="style+squares"),
                InlineKeyboardButton(
                    "๐Ÿ†‚๏ธŽ๐Ÿ†€๏ธŽ๐Ÿ†„๏ธŽ๐Ÿ…ฐ๏ธŽ๐Ÿ†๏ธŽ๐Ÿ…ด๏ธŽ๐Ÿ†‚๏ธŽ", callback_data="style+squares_bold"
                ),
            ],
            [
                InlineKeyboardButton("๊ช–๊ช€แฆ”๊ช–๊ชถ๊ชŠแฅด๐“ฒ๊ช–", callback_data="style+andalucia"),
                InlineKeyboardButton("็ˆชๅ‚ๅ‡ แ˜œๅ‚", callback_data="style+manga"),
                InlineKeyboardButton("Sฬพtฬพiฬพnฬพkฬพyฬพ", callback_data="style+stinky"),
            ],
            [
                InlineKeyboardButton(
                    "Bอฆฬฅuอฆฬฅbอฆฬฅbอฆฬฅlอฆฬฅeอฆฬฅsอฆฬฅ", callback_data="style+bubbles"
                ),
                InlineKeyboardButton(
                    "UอŸnอŸdอŸeอŸrอŸlอŸiอŸnอŸeอŸ", callback_data="style+underline"
                ),
                InlineKeyboardButton("๊’’๊๊€ท๊Œฉ๊Œƒ๊€Ž๊…", callback_data="style+ladybug"),
            ],
            [
                InlineKeyboardButton("Rา‰aา‰yา‰sา‰", callback_data="style+rays"),
                InlineKeyboardButton("Bาˆiาˆrาˆdาˆsาˆ", callback_data="style+birds"),
                InlineKeyboardButton("Sฬธlฬธaฬธsฬธhฬธ", callback_data="style+slash"),
            ],
            [
                InlineKeyboardButton("sโƒ tโƒ oโƒ pโƒ ", callback_data="style+stop"),
                InlineKeyboardButton(
                    "Sอ†ฬบkอ†ฬบyอ†ฬบlอ†ฬบiอ†ฬบnอ†ฬบeอ†ฬบ", callback_data="style+skyline"
                ),
                InlineKeyboardButton("AอŽrอŽrอŽoอŽwอŽsอŽ", callback_data="style+arrows"),
            ],
            [
                InlineKeyboardButton("แ‹ชแˆ€แŠญแ‰ฟแА", callback_data="style+qvnes"),
                InlineKeyboardButton("Sฬถtฬถrฬถiฬถkฬถeฬถ", callback_data="style+strike"),
                InlineKeyboardButton("Fเผ™rเผ™oเผ™zเผ™eเผ™nเผ™", callback_data="style+frozen"),
            ],
            [
                InlineKeyboardButton ("แด„สŸแดsแด‡",callback_data="close_reply"),InlineKeyboardButton ("ส™แด€แด„แด‹", callback_data="nxt+0")],
        ]
        await m.answer()
        await m.message.edit_reply_markup(InlineKeyboardMarkup(buttons))
    else:
        await style_buttons(c, m, cb=True)


@app.on_callback_query(filters.regex("^style"))
async def style(c, m):
    await m.answer()
    cmd,style = m.data.split('+')
    if style == "typewriter":
        cls = Fonts.typewriter
    if style == "outline":
        cls = Fonts.outline
    if style == "serif":
        cls = Fonts.serief
    if style == "bold_cool":
        cls = Fonts.bold_cool
    if style == "cool":
        cls = Fonts.cool
    if style == "small_cap":
        cls = Fonts.smallcap
    if style == "script":
        cls = Fonts.script
    if style == "script_bolt":
        cls = Fonts.bold_script
    if style == "tiny":
        cls = Fonts.tiny
    if style == "comic":
        cls = Fonts.comic
    if style == "sans":
        cls = Fonts.san
    if style == "slant_sans":
        cls = Fonts.slant_san
    if style == "slant":
        cls = Fonts.slant
    if style == "sim":
        cls = Fonts.sim
    if style == "circles":
        cls = Fonts.circles
    if style == "circle_dark":
        cls = Fonts.dark_circle
    if style == "gothic":
        cls = Fonts.gothic
    if style == "gothic_bolt":
        cls = Fonts.bold_gothic
    if style == "cloud":
        cls = Fonts.cloud
    if style == "happy":
        cls = Fonts.happy
    if style == "sad":
        cls = Fonts.sad
    if style == "special":
        cls = Fonts.special
    if style == "squares":
        cls = Fonts.square
    if style == "squares_bold":
        cls = Fonts.dark_square
    if style == "andalucia":
        cls = Fonts.andalucia
    if style == "manga":
        cls = Fonts.manga
    if style == "stinky":
        cls = Fonts.stinky
    if style == "bubbles":
        cls = Fonts.bubbles
    if style == "underline":
        cls = Fonts.underline
    if style == "ladybug":
        cls = Fonts.ladybug
    if style == "rays":
        cls = Fonts.rays
    if style == "birds":
        cls = Fonts.birds
    if style == "slash":
        cls = Fonts.slash
    if style == "stop":
        cls = Fonts.stop
    if style == "skyline":
        cls = Fonts.skyline
    if style == "arrows":
        cls = Fonts.arrows
    if style == "qvnes":
        cls = Fonts.rvnes
    if style == "strike":
        cls = Fonts.strike
    if style == "frozen":
        cls = Fonts.frozen
    #text = m.text.split(' ',1)[1]    
    new_text = cls(m.message.reply_to_message.text.split(" ",1)[1])
    try:
        await m.message.edit_text(new_text, reply_markup=m.message.reply_markup)
    except:
        pass