Merge branch 'bot-owners' into develop
This commit is contained in:
commit
532c3af254
@ -271,7 +271,7 @@ async def matrix_transaction(request):
|
|||||||
url_str = await shorten_url(url_str)
|
url_str = await shorten_url(url_str)
|
||||||
url_str = ' (' + url_str + ')'
|
url_str = ' (' + url_str + ')'
|
||||||
|
|
||||||
prefix = '<' + displayname + '> ' if displayname != ''
|
prefix = '' if displayname == '' else '<' + displayname + '> '
|
||||||
caption = '{}{}{}'.format(prefix,
|
caption = '{}{}{}'.format(prefix,
|
||||||
content['body'], url_str)
|
content['body'], url_str)
|
||||||
response = await group.send_photo(img_file, caption=caption)
|
response = await group.send_photo(img_file, caption=caption)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user