Skip to content

Instantly share code, notes, and snippets.

@kaecy
Last active December 22, 2021 19:47
Show Gist options
  • Save kaecy/337e00a4c187e22191098b92063ccb02 to your computer and use it in GitHub Desktop.
Save kaecy/337e00a4c187e22191098b92063ccb02 to your computer and use it in GitHub Desktop.
Py/Telegram extension.
from telethon.tl.types import MessageEntityMention
def getMentionEntities(message):
mentions = []
for entity in message.entities:
if type(entity) is MessageEntityMention:
offset = entity.offset
length = entity.length
mentions.append(message.message[offset:offset + length])
return mentions
@BKaecy
Copy link

BKaecy commented Dec 22, 2021

youareretarded.py

@kaecy
Copy link
Author

kaecy commented Dec 22, 2021

@BKaecy whatever.

@BKaecy
Copy link

BKaecy commented Dec 22, 2021

lmao muslim hating faggot.py

@BKaecy
Copy link

BKaecy commented Dec 22, 2021

why don't you like muslims? what did allah do to you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment