Update mautrix-python
This commit is contained in:
@@ -20,8 +20,7 @@ import logging
|
|||||||
from telethon import TelegramClient
|
from telethon import TelegramClient
|
||||||
|
|
||||||
from mautrix.types import RoomID, UserID
|
from mautrix.types import RoomID, UserID
|
||||||
from mautrix.util.formatter import MatrixParser as BaseMatrixParser, RecursionContext
|
from mautrix.util.formatter import MatrixParser as BaseMatrixParser, RecursionContext, HTMLNode
|
||||||
from mautrix.util.formatter.html_reader_htmlparser import HTMLNode, read_html
|
|
||||||
from mautrix.util.logging import TraceLogger
|
from mautrix.util.logging import TraceLogger
|
||||||
|
|
||||||
from ... import portal as po, puppet as pu, user as u
|
from ... import portal as po, puppet as pu, user as u
|
||||||
@@ -33,7 +32,6 @@ log: TraceLogger = logging.getLogger("mau.fmt.mx")
|
|||||||
class MatrixParser(BaseMatrixParser[TelegramMessage]):
|
class MatrixParser(BaseMatrixParser[TelegramMessage]):
|
||||||
e = TelegramEntityType
|
e = TelegramEntityType
|
||||||
fs = TelegramMessage
|
fs = TelegramMessage
|
||||||
read_html = staticmethod(read_html)
|
|
||||||
client: TelegramClient
|
client: TelegramClient
|
||||||
|
|
||||||
def __init__(self, client: TelegramClient) -> None:
|
def __init__(self, client: TelegramClient) -> None:
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ python-magic>=0.4,<0.5
|
|||||||
commonmark>=0.8,<0.10
|
commonmark>=0.8,<0.10
|
||||||
aiohttp>=3,<4
|
aiohttp>=3,<4
|
||||||
yarl>=1,<2
|
yarl>=1,<2
|
||||||
mautrix>=0.14.6,<0.15
|
mautrix>=0.14.8,<0.15
|
||||||
#telethon>=1.24,<1.25
|
#telethon>=1.24,<1.25
|
||||||
# Fork to make session storage async and update to layer 137
|
# Fork to make session storage async and update to layer 137
|
||||||
tulir-telethon==1.25.0a3
|
tulir-telethon==1.25.0a3
|
||||||
|
|||||||
Reference in New Issue
Block a user