|
import os |
|
from akn.MagicFonts.fonts import Fonts |
|
from pyrogram import Client, filters |
|
from pyrogram import * |
|
from pyrogram.types import * |
|
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup |
|
|
|
|
|
@Client.on_message( |
|
filters.command(["start"]) |
|
& filters.private |
|
& ~filters.forwarded |
|
) |
|
async def start(c, m): |
|
text = f"""Hey! {m.from_user.mention}, |
|
|
|
๐ก ** I am Stylish Fonts Bot** |
|
|
|
โข I can help you to get stylish fonts |
|
โข Just send me some text and see magic |
|
|
|
- maintenance by @xtdevs |
|
""" |
|
buttons = [ |
|
[ |
|
InlineKeyboardButton('Developer', url=f"https://t.me/xtsea"), |
|
InlineKeyboardButton('Channel', url='https://t.me/RendyProjects'), |
|
], |
|
[ |
|
InlineKeyboardButton('Fonts Via Web', url='https://fsymbols.com/generators/smallcaps/') |
|
], |
|
[ |
|
InlineKeyboardButton(text="Donate Via Web", web_app=WebAppInfo(url="https://sociabuzz.com/randydev99/tribe")) |
|
] |
|
] |
|
await m.reply_text( |
|
text=text, |
|
disable_web_page_preview=True, |
|
reply_markup=InlineKeyboardMarkup(buttons) |
|
) |
|
await m.stop_propagation() |
|
|
|
@Client.on_message(filters.private & filters.text) |
|
async def style_buttons(c, m, cb=False): |
|
buttons = [[ |
|
InlineKeyboardButton('๐๐ข๐๐๐ ๐๐๐๐๐', callback_data='style+typewriter'), |
|
InlineKeyboardButton('๐๐ฆ๐ฅ๐๐๐๐', callback_data='style+outline'), |
|
InlineKeyboardButton('๐๐๐ซ๐ข๐', callback_data='style+serif'), |
|
],[ |
|
InlineKeyboardButton('๐บ๐๐๐๐', callback_data='style+bold_cool'), |
|
InlineKeyboardButton('๐๐๐๐๐', callback_data='style+cool'), |
|
InlineKeyboardButton('Sแดแดสส Cแดแดs', callback_data='style+small_cap'), |
|
],[ |
|
InlineKeyboardButton('๐๐ธ๐๐พ๐
๐', callback_data='style+script'), |
|
InlineKeyboardButton('๐ผ๐ฌ๐ป๐ฒ๐น๐ฝ', callback_data='style+script_bolt'), |
|
InlineKeyboardButton('แตโฑโฟสธ', callback_data='style+tiny'), |
|
],[ |
|
InlineKeyboardButton('แOแฐIแ', callback_data='style+comic'), |
|
InlineKeyboardButton('๐ฆ๐ฎ๐ป๐', callback_data='style+sans'), |
|
InlineKeyboardButton('๐๐๐ฃ๐จ', callback_data='style+slant_sans'), |
|
],[ |
|
InlineKeyboardButton('๐๐ข๐ฏ๐ด', callback_data='style+slant'), |
|
InlineKeyboardButton('๐ฒ๐บ๐๐', callback_data='style+sim'), |
|
InlineKeyboardButton('โธ๏ธโพ๏ธโ๏ธโธ๏ธโ๏ธโบ๏ธโ๏ธ', callback_data='style+circles'), |
|
],[ |
|
InlineKeyboardButton('๐
๏ธ๐
๏ธ๐
ก๏ธ๐
๏ธ๐
๏ธ๐
๏ธ๐
ข๏ธ', callback_data='style+circle_dark'), |
|
InlineKeyboardButton('๐๐ฌ๐ฑ๐ฅ๐ฆ๐ ', callback_data='style+gothic'), |
|
InlineKeyboardButton('๐ฒ๐๐๐๐๐', callback_data='style+gothic_bolt'), |
|
],[ |
|
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('Next โก๏ธ', callback_data="nxt") |
|
]] |
|
if not cb: |
|
await m.reply_text(m.text, reply_markup=InlineKeyboardMarkup(buttons), quote=True) |
|
else: |
|
await m.answer() |
|
await m.message.edit_reply_markup(InlineKeyboardMarkup(buttons)) |
|
|
|
|
|
@Client.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('โฌ
๏ธ Back', callback_data='nxt+0') |
|
]] |
|
await m.answer() |
|
await m.message.edit_reply_markup(InlineKeyboardMarkup(buttons)) |
|
else: |
|
await style_buttons(c, m, cb=True) |
|
|
|
|
|
@Client.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 |
|
new_text = cls(m.message.reply_to_message.text) |
|
try: |
|
await m.message.edit_text(new_text, reply_markup=m.message.reply_markup) |
|
except: |
|
pass |
|
|