J-Rios / TLG_JoinCaptchaBot

Telegram Bot to verify if users joining a group are human. The Bot sends an image captcha for each new user and kicks any of them who can't solve the captcha in a specified time.
GNU General Public License v3.0
515 stars 217 forks source link

[Issue] New user join event not received in large groups #103

Closed J-Rios closed 3 years ago

J-Rios commented 3 years ago

Context

Seems that current Bot didn't receive any new user join event in groups with more than 10k members...

From Telegram Bot API 5.2:

⚠️ WARNING! ⚠️ Service messages about non-bot users joining the chat will be soon removed from large groups. We recommend using the “chat_member” update as a replacement.

To-Do

  1. Update Bot requeriment to use python-telegram-bot v13.5 (it include Bot API 5.2 full support).
  2. Update Bot code to support the new python-telegram-bot version and new "chat_member" update to detect new members joins.
  3. Check if nothing is broken after this changes.
J-Rios commented 3 years ago

python-telegram-bot v12 to v13 migration guide

https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-13.0

List of deprecations and break changes:

J-Rios commented 3 years ago

Changes done in this commit.

Still we need to check if this changes breaks something (like poll mode, button mode) and check if it works ok in every type of groups (private groups, public groups, supergroups, large groups, etc)...

J-Rios commented 3 years ago

Seems everything is ok.

Closing.