Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions LaylaRobot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,26 +74,26 @@ def get_readable_time(seconds: int) -> str:


PM_START_TEXT = """
Hello, I'M Layla
`ɪ'ᴍ ʜᴇʀᴇ ᴛᴏ ʜᴇʟᴘ ʏᴏᴜ ᴍᴀɴᴀɢᴇ ʏᴏᴜʀ ɢʀᴏᴜᴘꜱ! ʜɪᴛ` /help
Maintained by @HEROGAMERS1 ❤
Hᴇʏ, ɪ ' ᴀᴍ 𝗖𝗿𝗲𝗽𝗮𝗻
`ɪ'ᴍ ʜᴇʀᴇ ᴛᴏ ʜᴇʟᴘ ʏᴏᴜ ᴍᴀɴᴀɢᴇ ʏᴏᴜʀ ɢʀᴏᴜᴘꜱ ʏᴏᴜʀ ɢʀᴏᴜᴘ ꜱᴜᴘᴇʀ ʙᴏᴛ ! ʜɪᴛ` /help
Mᴀɪɴᴛᴀɪɴᴇᴅ Bʏ : @crepan 👨‍💻
"""

buttons = [
[
InlineKeyboardButton(
text="➕️ ᴀᴅᴅ ᴛᴏ ʏᴏᴜʀ ɢʀᴏᴜᴘ ➕️", url="t.me/LaylaRobot?startgroup=true"),
text="➕️ ᴀᴅᴅ ᴛᴏ ʏᴏᴜʀ ɢʀᴏᴜᴘ ➕️", url="t.me/crepanBot?startgroup=true"),
],
[
InlineKeyboardButton(text="ᴀʙᴏᴜᴛ", callback_data="layla_"),
InlineKeyboardButton(text="Aʙᴏᴜᴛ", callback_data="layla_"),
InlineKeyboardButton(
text="ꜱᴜᴘᴘᴏʀᴛ", url=f"https://t.me/{SUPPORT_CHAT}"
text="Sᴜᴘᴘᴏʀᴛ", url=f"https://t.me/crepansupport"
),
],
[
InlineKeyboardButton(text="ʟᴏɢꜱ", url=f"https://t.me/laylalogs"),
InlineKeyboardButton(text="ʟᴏɢꜱ", url=f"https://t.me/crepanlogs"),
InlineKeyboardButton(
text="ꜰᴇᴅᴇʀᴀᴛɪᴏɴ", url=f"https://t.me/AntiRippingOrganization/410"
text="Fᴇᴅᴇʀᴀᴛɪᴏɴ", url=f"https://t.me/AntiRippingOrganization/410"
),
],
[
Expand All @@ -103,15 +103,15 @@ def get_readable_time(seconds: int) -> str:


HELP_STRINGS = """
`Hi.. I'M` Layla
`Hi, I'M` CREPAN 👨‍💻
`ᴄʟɪᴄᴋ ᴏɴ ᴛʜᴇ ʙᴜᴛᴛᴏɴꜱ ʙᴇʟᴏᴡ ᴛᴏ ɢᴇᴛ ᴅᴏᴄᴜᴍᴇɴᴛᴀᴛɪᴏɴ ᴀʙᴏᴜᴛ ꜱᴘᴇᴄɪꜰɪᴄ ᴍᴏᴅᴜʟᴇꜱ..`
Powered by :- [Awesome Bots](t.me/Laylalist)"""
ᴘᴏᴡᴇʀᴇᴅ ʙʏ :- [𝗖𝗥𝗘𝗔𝗧𝗢𝗥 𝗣𝗔𝗩𝗔𝗡](t.me/crepan)"""

layla_IMG = "https://telegra.ph/file/524b78577a42b02b2f074.jpg"
layla_IMG = "https://telegra.ph/file/cda9d87f41196852c2df7.jpg"

DONATE_STRING = """Heya, glad to hear you want to donate!
You can support the project [Hero](t.me/HEROGAMERS1) \
Supporting isnt always financial! [AwesomeSupport](t.me/LaylaList) \
You can support the project [CREPAN](t.me/crepanPMbot) \
Supporting isnt always financial! [CrepanSupport](t.me/crepan) \
Those who cannot provide monetary support are welcome to help us develop the bot at ."""

IMPORTED = {}
Expand Down Expand Up @@ -357,19 +357,19 @@ def layla_about_callback(update, context):
query = update.callback_query
if query.data == "layla_":
query.message.edit_text(
text=""" ℹ️ I'm *Layla*, a powerful group management bot built to help you manage your group easily.
text=""" 🇮🇳 I'm *Crepan*, a powerful group management bot built to help you manage your group easily.
\n❍ I can restrict users.
\n❍ I can greet users with customizable welcome messages and even set a group's rules.
\n❍ I have an advanced anti-flood system.
\n❍ I can warn users until they reach max warns, with each predefined actions such as ban, mute, kick, etc.
\n❍ I have a note keeping system, blacklists, and even predetermined replies on certain keywords.
\n❍ I check for admins' permissions before executing any command and more stuffs
\n\n_Layla's licensed under the GNU General Public License v3.0_
\n❍ Awesome Bots @LaylaList
\n❍ Support Group @AwesomeSupport
\n❍ Assistant @LaylaAssistant.
\nHere is the [💾Repository](https://github.com/QueenArzoo/LaylaRobot).
\n\nIf you have any question about Layla, let us know at .""",
\n\n_Crepan's licensed under the GNU General Public License v3.0_
\n❍ Contact us @crepanPMbot
\n❍ Support Group @CrepanSupport
\n❍ About us @crepan.
\nPowered By : Creator Pavan
\n\nIf you have any question about Crepan, let us know at .""",
parse_mode=ParseMode.MARKDOWN,
disable_web_page_preview=True,
reply_markup=InlineKeyboardMarkup(
Expand All @@ -395,8 +395,8 @@ def Source_about_callback(update, context):
query = update.callback_query
if query.data == "source_":
query.message.edit_text(
text=""" Hi..🤗 I'm *Layla*
\nHere is the [Source Code](https://github.com/QueenArzoo/LaylaRobot) .""",
text=""" Hi..🤗 I'm *Crepan*
\nHere is the my master : @crepan .""",
parse_mode=ParseMode.MARKDOWN,
disable_web_page_preview=True,
reply_markup=InlineKeyboardMarkup(
Expand Down Expand Up @@ -691,7 +691,7 @@ def main():

if SUPPORT_CHAT is not None and isinstance(SUPPORT_CHAT, str):
try:
dispatcher.bot.sendMessage(f"@{SUPPORT_CHAT}", "Yes I'm alive 😹")
dispatcher.bot.sendMessage(f"@{SUPPORT_CHAT}", "Yes I'm alive 🙂")
except Unauthorized:
LOGGER.warning(
"Bot isnt able to send message to support_chat, go and check!"
Expand Down