This commit is contained in:
Andreas Bielawski
2016-08-27 14:49:02 +02:00
3 changed files with 23 additions and 17 deletions

View File

@@ -28,9 +28,9 @@ function id:user_print_name(user) -- Yes, copied from stats plugin
local text = ''
if user.first_name then
text = user.last_name..' '
text = user.first_name..' '
end
if user.lastname then
if user.last_name then
text = text..user.last_name
end

View File

@@ -17,7 +17,7 @@ function post_photo:pre_process(msg, config)
local file_size = msg.document.file_size
if file_size > 19922944 then
print('File is over 20 MB - can\'t download :(')
return
return msg
end
utilities.send_typing(msg.chat.id, 'upload_photo')