mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Added full* markdown support and updated README
* Although the markdown parser works perfectly, the official Telegram client does not fully reflect it. However, if you still think that this is a lie, go check the markdown parser and test it yourself!
This commit is contained in:
4
main.py
4
main.py
@@ -9,7 +9,7 @@ if __name__ == '__main__':
|
||||
|
||||
else:
|
||||
print('Loading interactive example...')
|
||||
|
||||
|
||||
# First, initialize our TelegramClient and connect
|
||||
settings = load_settings()
|
||||
client = TelegramClient(session_user_id=settings.get('session_name', 'anonymous'),
|
||||
@@ -49,6 +49,6 @@ if __name__ == '__main__':
|
||||
msg = input('Enter a message: ')
|
||||
if msg == '!q':
|
||||
break
|
||||
client.send_message(input_peer, msg)
|
||||
client.send_message(input_peer, msg, markdown=True, no_web_page=True)
|
||||
|
||||
print('Thanks for trying the interactive example! Exiting.')
|
||||
|
Reference in New Issue
Block a user