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

Commit

Permalink
🐍 Support for Python 3.10.6 & Typo Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCaduceus authored Aug 7, 2022
2 parents a6b34c3 + 0aa8879 commit 18d3973
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 18d3973

Please sign in to comment.