From 93f02d78b6792f6b1b535e0136cc12296744ce89 Mon Sep 17 00:00:00 2001 From: AmirSbss Date: Tue, 27 Dec 2016 11:46:32 +0330 Subject: [PATCH] Update tdcli.lua --- tdcli.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tdcli.lua b/tdcli.lua index 301636c..a2d0f5e 100644 --- a/tdcli.lua +++ b/tdcli.lua @@ -41,7 +41,7 @@ local function getChatId(chat_id) end local function getInputMessageContent(file, filetype, caption) - if file:match('/') then + if file:match('/') or file:match('.') then infile = {ID = "InputFileLocal", path_ = file} elseif file:match('^%d+$') then infile = {ID = "InputFileId", id_ = file} @@ -2544,4 +2544,4 @@ local function sendGame(chat_id, reply_to_message_id, disable_notification, from end M.sendGame = sendGame -return M \ No newline at end of file +return M