mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Allow setting a per-client default parse mode
This commit is contained in:
@@ -46,6 +46,14 @@ VALID_USERNAME_RE = re.compile(
|
||||
)
|
||||
|
||||
|
||||
class Default:
|
||||
"""
|
||||
Sentinel value to indicate that the default value should be used.
|
||||
Currently used for the ``parse_mode``, where a ``None`` mode should
|
||||
be considered different from using the default.
|
||||
"""
|
||||
|
||||
|
||||
def get_display_name(entity):
|
||||
"""
|
||||
Gets the display name for the given entity, if it's an :tl:`User`,
|
||||
|
Reference in New Issue
Block a user