Send legal information in PDF
This commit is contained in:
parent
d79fcf0df4
commit
47e205f26d
|
@ -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.')
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue