mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Add MessageEntity type
This commit is contained in:
parent
48bf7438b7
commit
4e4d9e6e44
15
pyrogram/client/types/message_entity.py
Normal file
15
pyrogram/client/types/message_entity.py
Normal file
@ -0,0 +1,15 @@
|
||||
from . import User
|
||||
|
||||
|
||||
class MessageEntity:
|
||||
def __init__(self,
|
||||
type: str,
|
||||
offset: int,
|
||||
length: int,
|
||||
url: str = None,
|
||||
user: User = None):
|
||||
self.type = type
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
self.url = url
|
||||
self.user = user
|
Loading…
Reference in New Issue
Block a user