How to make a black list in this case.
Please tell me. How to make a black list in this case. To receive only unique email values. So that the same value is not sent several times
@client.on(events.NewMessage())
async def normal_handler(event):
text = event.message.to_dict()['message']
if re.search(r'[^\s]+@[^\s]+', text):
m = re.search(r'[^\s]+@[^\s]+', text)
await client.send_message('@LOGIN', m.group(0))
print(m.group(0))
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Apr 4, 2021, 6:41 AM EDT
Kousik52 reputationPosted Apr 5, 2021, 12:22 AM EDT