Skip to content
This repository was archived by the owner on Aug 25, 2023. It is now read-only.
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
22 changes: 6 additions & 16 deletions SophiaBot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
Filters,
MessageHandler,
)
from telegram.ext.dispatcher import DispatcherHandlerStop, run_async
from telegram.utils.helpers import escape_markdown
from telegram.ext.dispatcher import DispatcherHandlerStop,UTR4E""" m telegram.utils.helpers import escape_markdown


def get_readable_time(seconds: int) -> str:
Expand Down Expand Up @@ -74,13 +73,11 @@ def get_readable_time(seconds: int) -> str:
return ping_time


PM_START_TEXT = """Hey there 👋! My name is *Sophia*.\n\nI can help manage your groups with useful features, feel free to add me to your groups!."""
PM_START_TEXT = """Hey there 👋! My name is *ᴄʟᴀɴᴅᴇꜱᴛɪɴᴇ ɢʀᴏᴜᴘ ʙᴏᴛ*.\n\nI can help manage your groups with useful features, feel free to add me to your groups!."""

STICKERS = (
"CAACAgUAAx0CTpRfGwACF41hMfagTfWdHNFici1VtOCQVVNYmgACgh8AAsZRxhU6tKJa_ySnnCAE",
"CAACAgUAAx0CTpRfGwACF5phMfi5vgKwQFg6KuzHiEc79QFT0QACCR4AAsZRxhVu32VqEb3_1SAE",
"CAACAgUAAx0CTpRfGwACGIBhQcGJDHuuXsU5el3I86SEx3nTpgAC2R8AAsZRxhUpEe6EcVukQCAE",
)
"CAACAgUAAx0CWrNeBQAC8xxhaWWJYna16TZXVcOdvPS9InnhfgACrAMAAn37MVV0qkjG9l_UTR4E",
)


buttons = [
Expand All @@ -93,19 +90,12 @@ def get_readable_time(seconds: int) -> str:
text="System Stats 💻", callback_data="stats_callback"
),
],
[
InlineKeyboardButton(text=" Sophia News 🙋‍♀️ ", url=f"https://t.me/SophiaUpdates"),
InlineKeyboardButton(text=" Support Group 💬 ", url=f"https://t.me/SophiaSupport_Official"),
],
[
InlineKeyboardButton(text="➕ Add Sophia to your Group ➕", url="t.me/SophiaSLBot?startgroup=true"),
],
]

HELP_STRINGS = """
✘✘✘ 𝗛𝗲𝗹𝗽𝗳𝘂𝗹 𝗖𝗼𝗺𝗺𝗮𝗻𝗱𝘀 ✘✘✘

Every possibility of Sophia is documentated here
Every possibility of ᴄʟᴀɴᴅᴇꜱᴛɪɴᴇ ɢʀᴏᴜᴘ ʙᴏᴛ is documentated here
Click buttons to get help
"""

Expand Down Expand Up @@ -222,7 +212,7 @@ def start(update: Update, context: CallbackContext):
timeout=60,
)
else:
update.effective_message.reply_text("Heya, Sophia here :) PM me if you have any questions how to use me!")
update.effective_message.reply_text("Heya, ᴄʟᴀɴᴅᴇꜱᴛɪɴᴇ ɢʀᴏᴜᴘ ʙᴏᴛ here :) PM me if you have any questions how to use me!")


def error_handler(update, context):
Expand Down