- dkjson durch lua-cjson ausgetauscht. Bitte lua-cjson installieren!
- Surrogate unterstützt jetzt auch @-Namen (und dadurch auch Kanäle)
This commit is contained in:
@ -13,7 +13,7 @@ function echo:init(config)
|
||||
end
|
||||
|
||||
function echo:inline_callback(inline_query, config, matches)
|
||||
local text = matches[1]
|
||||
local text = matches[1]
|
||||
local results = '['
|
||||
|
||||
-- enable custom markdown button
|
||||
|
@ -2,11 +2,11 @@ local surrogate = {}
|
||||
|
||||
surrogate.triggers = {
|
||||
"^/s (%-%d+) +(.+)$",
|
||||
"^/s (%d+) +(.+)$"
|
||||
"^/s (%d+) +(.+)$",
|
||||
"^/s (@[A-Za-z0-9-_-.-._.]+) +(.+)"
|
||||
}
|
||||
|
||||
function surrogate:action(msg)
|
||||
-- Supergroups don't work!?
|
||||
utilities.send_message(self, matches[1], matches[2], true, nil, true)
|
||||
return
|
||||
end
|
||||
|
Reference in New Issue
Block a user