Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

🐍 Support for Python 3.10.6 & Typo Errors #40

Merged
merged 3 commits into from
Aug 7, 2022
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<h2><b>🆕 What's New!</b></h2>
<p><b>1.Gclone upgraded to v1.59.0 (latest)!😉</b></p>
<p><b>2.Base Image changed to Ubuntu 22.04</b></p>
<p><b>3.Updated <code>Filters.group</code> to <code>Filters.chat_type.groups</code> as well as <code>Filters.private</code> to <code>Filters.chat_type.private</code> to support Python 3.10</b></p>
<p><b>3.CloneBot V2 is now confortable with Python 3.10.6</b></p>
<p><b>4.Resloved $PORT listening Errors in Okteto and other platforms</p>
<p><b>5.Old Docker Image <code>ghcr.io/thecaduceus/clonebot_v2:main</code> is now no more supported and deprecated!</b></p>
<p><b><a href="https://github.com/TheCaduceus/CloneBot_V2/releases">Show Full Update history</a></b></p>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h2><b>📑 INDEX</b></h2>
<h2><b>🆕 What's New!</b></h2>
<p><b>1.Gclone upgraded to v1.59.0 (latest)!😉</b></p>
<p><b>2.Base Image changed to Ubuntu 22.04</b></p>
<p><b>3.Updated <code>Filters.group</code> to <code>Filters.chat_type.groups</code> as well as <code>Filters.private</code> to <code>Filters.chat_type.private</code> to support Python 3.10</b></p>
<p><b>3.CloneBot V2 is now confortable with Python 3.10.6</b></p>
<p><b>4.Resloved $PORT listening Errors in Okteto and other platforms</p>
<p><b>5.Old Docker Image <code>ghcr.io/thecaduceus/clonebot_v2:main</code> is now no more supported and deprecated!</b></p>
<p><b><a href="https://github.com/TheCaduceus/CloneBot_V2/releases">Show Full Update history</a></b></p>
Expand Down
6 changes: 3 additions & 3 deletions telegram_gcloner/handlers/add_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down