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