Skip to content

How to perfectly greet every member who joins the group under any circumstances? #2043

@Hamiiim

Description

@Hamiiim

I tried the following two solutions but neither worked perfectly:

  1. @bot.message_handler(content_types=['new_chat_member', 'new_chat_members'])
  2. @bot.chat_member_handler(func=lambda message: 'is_member' in message.difference or 'status' in message.difference)

bot.polling(allowed_updates=update_types)
pyTelegramBotAPI :4.13
OS: ubuntu 22.04
python:3.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions