mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-27 20:37:54 +00:00
Revert "Make send_message recognise the Empty parse mode"
This reverts commit e1e6e4b
This commit is contained in:
parent
73c101b49d
commit
0dc5ecf28c
@ -19,7 +19,6 @@
|
||||
from pyrogram.api import functions, types
|
||||
from pyrogram.client import types as pyrogram_types
|
||||
from ...ext import utils, BaseClient
|
||||
from ...style import Empty
|
||||
|
||||
|
||||
class SendMessage(BaseClient):
|
||||
@ -68,13 +67,7 @@ class SendMessage(BaseClient):
|
||||
Raises:
|
||||
:class:`Error <pyrogram.Error>`
|
||||
"""
|
||||
parse_mode = parse_mode.lower()
|
||||
|
||||
style = (
|
||||
Empty if parse_mode == "empty"
|
||||
else self.html if parse_mode == "html"
|
||||
else self.markdown
|
||||
)
|
||||
style = self.html if parse_mode.lower() == "html" else self.markdown
|
||||
|
||||
r = self.send(
|
||||
functions.messages.SendMessage(
|
||||
|
Loading…
x
Reference in New Issue
Block a user