@bot.message_handler(content_types=['text', 'new_chat_members'])
def info(message):
try:
if message.new_chat_member:
username = f'@{str(message.from_user.username)}'
username = username.replace('@None', str(message.from_user.first_name))
bot.send_message(chat_worker_id, f'Привет')
except Exception as e:
print(e)