mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 14:24:51 +00:00
Add MessageEntity type
This commit is contained in:
parent
48bf7438b7
commit
4e4d9e6e44
1 changed files with 15 additions and 0 deletions
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 a new issue