From 6611e0c521d34d9a2769e743ea35e77cbd94f644 Mon Sep 17 00:00:00 2001 From: "Dr.Caduceus" <87380104+TheCaduceus@users.noreply.github.com> Date: Sun, 7 Aug 2022 15:37:17 +0530 Subject: [PATCH 1/3] Update add_group.py Signed-off-by: Dr.Caduceus <87380104+TheCaduceus@users.noreply.github.com> --- telegram_gcloner/handlers/add_group.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telegram_gcloner/handlers/add_group.py b/telegram_gcloner/handlers/add_group.py index 5c6a9a4..784790c 100644 --- a/telegram_gcloner/handlers/add_group.py +++ b/telegram_gcloner/handlers/add_group.py @@ -31,12 +31,12 @@ def add_group(update, context): html.escape(update.message.from_user.full_name)) context.bot.send_message( chat_id=update.message.chat_id, - text=f'γ{mention_html_from_user}γThank you for adding this MsgSuite CloneBot bot to the group. {config.AD_STRING.format(context.bot.username)}', + text=f'γ{mention_html_from_user}γThank you for adding CloneBot V2. {config.AD_STRING.format(context.bot.username)}', parse_mode=ParseMode.HTML, ) - context.bot.send_message(chat_id=update.message.chat_id, text='I am not authorized to be here π. \n So I am leaving this group. \n Ask my owner to allow me in your group.') - message = f'π Left Uunauthorized Group : \n β Name : {update.message.chat.title} ({update.message.chat_id}). \n β Bot Added by{mention_html_from_user} {update.message.from_user.id}. \n β Message : {update.message.text}' + context.bot.send_message(chat_id=update.message.chat_id, text='I am not allowed to be here π. \n So I am leaving this group. \n Ask my owner to allow me in this group.') + message = f'π Left Unauthorized Group : \n β Name : {update.message.chat.title} ({update.message.chat_id}). \n β Bot Added by{mention_html_from_user} {update.message.from_user.id}. \n β Message : {update.message.text}' context.bot.leave_chat(update.message.chat_id) logger.warning(message) From ed861914af60f337f2141bf0cfcc978bd68ef443 Mon Sep 17 00:00:00 2001 From: "Dr.Caduceus" <87380104+TheCaduceus@users.noreply.github.com> Date: Sun, 7 Aug 2022 15:39:41 +0530 Subject: [PATCH 2/3] Support for Python `3.10.6` Signed-off-by: Dr.Caduceus <87380104+TheCaduceus@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 69ef866..542b096 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@
1.Gclone upgraded to v1.59.0 (latest)!π
2.Base Image changed to Ubuntu 22.04
-3.Updated Filters.group
to Filters.chat_type.groups
as well as Filters.private
to Filters.chat_type.private
to support Python 3.10
3.CloneBot V2 is now confortable with Python 3.10.6
4.Resloved $PORT listening Errors in Okteto and other platforms
5.Old Docker Image ghcr.io/thecaduceus/clonebot_v2:main
is now no more supported and deprecated!
1.Gclone upgraded to v1.59.0 (latest)!π
2.Base Image changed to Ubuntu 22.04
-3.Updated Filters.group
to Filters.chat_type.groups
as well as Filters.private
to Filters.chat_type.private
to support Python 3.10
3.CloneBot V2 is now confortable with Python 3.10.6
4.Resloved $PORT listening Errors in Okteto and other platforms
5.Old Docker Image ghcr.io/thecaduceus/clonebot_v2:main
is now no more supported and deprecated!