From d7cfdecb24f9f767943821e03ca95ce978853450 Mon Sep 17 00:00:00 2001 From: noobyogesh <74769819+noobyogesh@users.noreply.github.com> Date: Sat, 21 Nov 2020 14:01:42 +0530 Subject: [PATCH 1/5] 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..a667d56f 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) From 7a7fabf6fd37540e6a36b885c245f281f4cbb1c2 Mon Sep 17 00:00:00 2001 From: noobyogesh <74769819+noobyogesh@users.noreply.github.com> Date: Sun, 22 Nov 2020 11:15:30 +0530 Subject: [PATCH 2/5] Update __main__.py --- haruka/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haruka/__main__.py b/haruka/__main__.py index a667d56f..1d62686a 100755 --- a/haruka/__main__.py +++ b/haruka/__main__.py @@ -43,7 +43,7 @@ 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 or by add button [here] + Add me to a group by clicking or by add button [here](http://t.me/tg_Asur_groupmaneger_bot?startgroup=true). """ From 3dc93d5a85e76a64040a47063aa7abb16c987063 Mon Sep 17 00:00:00 2001 From: noobyogesh <74769819+noobyogesh@users.noreply.github.com> Date: Sun, 22 Nov 2020 11:17:02 +0530 Subject: [PATCH 3/5] Update runtime.txt --- runtime.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.txt b/runtime.txt index 5c453803..6934f40b 100755 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.6.4 +python-3.8.9 From c4813fb020edc8ce0d914a650a8ba09218584f18 Mon Sep 17 00:00:00 2001 From: noobyogesh <74769819+noobyogesh@users.noreply.github.com> Date: Sun, 22 Nov 2020 11:18:17 +0530 Subject: [PATCH 4/5] Update runtime.txt --- runtime.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.txt b/runtime.txt index 6934f40b..0fd6938d 100755 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.8.9 +python-3.8.6 From 9b225e7863f87d7feee48cc68584439e998ba67b Mon Sep 17 00:00:00 2001 From: noobyogesh <74769819+noobyogesh@users.noreply.github.com> Date: Sun, 22 Nov 2020 11:23:57 +0530 Subject: [PATCH 5/5] Update __main__.py --- haruka/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/haruka/__main__.py b/haruka/__main__.py index 1d62686a..857c4145 100755 --- a/haruka/__main__.py +++ b/haruka/__main__.py @@ -162,7 +162,8 @@ 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"), + 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(