Verarbeite Pre-Processoren nicht mehr, wenn Bot in der Gruppe deaktiviert ist oder Plugin im Chat aus ist
This commit is contained in:
@@ -1085,4 +1085,16 @@ function table.contains(table, element)
|
||||
return false
|
||||
end
|
||||
|
||||
-- Checks if bot was disabled on specific chat
|
||||
function is_channel_disabled(msg)
|
||||
local hash = 'chat:'..msg.chat.id..':disabled'
|
||||
local disabled = redis:get(hash)
|
||||
|
||||
if not disabled or disabled == "false" then
|
||||
return false
|
||||
end
|
||||
|
||||
return disabled
|
||||
end
|
||||
|
||||
return utilities
|
Reference in New Issue
Block a user