From 0f4a9e3870d0335b41a0c2b6b7d2a251b03b0cfd Mon Sep 17 00:00:00 2001 From: noobyogesh <74769819+noobyogesh@users.noreply.github.com> Date: Sat, 21 Nov 2020 13:42:29 +0530 Subject: [PATCH] Update __main__.py --- haruka/__main__.py | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/haruka/__main__.py b/haruka/__main__.py index 79dd0332..6ead542c 100755 --- a/haruka/__main__.py +++ b/haruka/__main__.py @@ -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] """ @@ -159,7 +163,10 @@ def send_start(bot, update): keyboard = [[InlineKeyboardButton(text="๐Ÿ‡ฎ๐Ÿ‡ณ Language", callback_data="set_lang_")]] 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)