Send legal information in PDF

This commit is contained in:
bursa-pastoris 2023-06-05 22:25:14 +02:00
parent d79fcf0df4
commit 47e205f26d
2 changed files with 2 additions and 2 deletions

View File

@ -214,11 +214,11 @@ async def legal(update, context):
await context.bot.send_chat_action(
chat_id=update.effective_chat.id,
action=ChatAction.UPLOAD_DOCUMENT)
with open('doc/LEGAL.md','rb') as legalnotes:
with open('doc/LEGAL.pdf','rb') as legalnotes:
await context.bot.send_document(
chat_id=update.effective_chat.id,
document=legalnotes,
filename='albatrobot-legal-notes.txt')
filename='albatrobot-legal-notes.pdf')
logger.info('A user asked for legal info.')

BIN
doc/LEGAL.pdf Normal file

Binary file not shown.