Skip to content

Commit

Permalink
Update tdcli.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirSbss authored Dec 27, 2016
1 parent 5356288 commit 93f02d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tdcli.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -2544,4 +2544,4 @@ local function sendGame(chat_id, reply_to_message_id, disable_notification, from
end

M.sendGame = sendGame
return M
return M

0 comments on commit 93f02d7

Please sign in to comment.