Skip to content

Commit

Permalink
v0.3
Browse files Browse the repository at this point in the history
- Change getChannelMembers(channel_id, offset, filter, limit, cb, cmd) to getChannelMembers(channel_id, filter, offset, limit, cb, cmd)
- Assign local P variable in getParseMode
  • Loading branch information
Sahri Riza Umami committed Mar 8, 2017
1 parent 070590a commit 15117c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tdcli.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ end

-- User can send bold, italic, and monospace text uses HTML or Markdown format.
local function getParseMode(parse_mode)
local P
if parse_mode then
local mode = parse_mode:lower()

Expand Down Expand Up @@ -2058,7 +2059,7 @@ M.reportChannelSpam = reportChannelSpam
-- @offset Number of channel users to skip
-- @limit Maximum number of users be returned, can't be greater than 200
-- filter = Recent|Administrators|Kicked|Bots
local function getChannelMembers(channel_id, offset, filter, limit, cb, cmd)
local function getChannelMembers(channel_id, filter, offset, limit, cb, cmd)
if not limit or limit > 200 then
limit = 200
end
Expand All @@ -2069,7 +2070,7 @@ local function getChannelMembers(channel_id, offset, filter, limit, cb, cmd)
filter_ = {
ID = "ChannelMembers" .. filter
},
offset_ = offset,
offset_ = offset or 0,
limit_ = limit
}, cb or dl_cb, cmd)
end
Expand Down

0 comments on commit 15117c2

Please sign in to comment.