Skip to content
Open
Show file tree
Hide file tree
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
30 changes: 19 additions & 11 deletions haruka/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,30 @@
from haruka.modules.translations.strings import tld, tld_help
from haruka.modules.connection import connected

START_IMG = os.environ.get('START_IMG', None)

if START_IMG is None:

img = "https://telegra.ph/file/4c1b792054bcb3be3cb0f.jpg"

else:

img = START_IMG

PM_START = """Hello {}, my name is {}!

You know how hard it is sometimes to manage group so here is the solution for you

I'm group manager bot and Anti-spam for RR Players🃏

This powerful Group manager bot was made by @Asur_Official

Activate Anti-spam protection in your BM by this command :
/antispam on

Made from the source code of [Aditya 🇮🇳](t.me/xditya)

Special thanks to [this person](t.me/denver02) for helping me.

Deploy a bot like me [now](www.github.com/xditya/GroupManager)

Watch [video tutorial](https://www.youtube.com/watch?v=gXXFpTAk6Vo&feature=youtu.be) on deploying me.

Click /help or Help button below to find out more about how to use me to my full potential.

Add me to a group by clicking [here](http://t.me/tg_GroupManagerBot?startgroup=true).
Add me to a group by clicking or by add button [here](http://t.me/tg_Asur_groupmaneger_bot?startgroup=true).
"""


Expand Down Expand Up @@ -158,8 +162,12 @@ def send_start(bot, update):
text = PM_START

keyboard = [[InlineKeyboardButton(text="🇮🇳 Language", callback_data="set_lang_")]]
keyboard += [[InlineKeyboardButton(text="🛠 Reporting", callback_data="cntrl_panel_M"),
InlineKeyboardButton(text="❔ Help", callback_data="help_back")]]
keyboard += [[InlineKeyboardButton(text="🛠 Reporting", callback_data="cntrl_panel_M"),
InlineKeyboardButton(text="❔ Help", callback_data="help_back")]]
InlineKeyboardButton(text="❔ Help", callback_data="help_back")
InlineKeyboardButton(text="🤖Add Me To Your Group",
url="t.me/{}?startgroup=true".format(
context.bot.username))]]

update.effective_message.reply_text(PM_START.format(escape_markdown(first_name), bot.first_name), reply_markup=InlineKeyboardMarkup(keyboard), disable_web_page_preview=True, parse_mode=ParseMode.MARKDOWN)

Expand Down
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.6.4
python-3.8.6