bugfixes
This commit is contained in:
parent
46fa425f5a
commit
6402cc241d
2
bot.lua
2
bot.lua
@ -10,7 +10,7 @@ VERSION = 2.01
|
|||||||
|
|
||||||
function on_msg_receive(msg)
|
function on_msg_receive(msg)
|
||||||
|
|
||||||
if msg.date < os.time() -5 then return end -- don't react to old messages
|
if msg.date < os.time() - 5 then return end -- don't react to old messages
|
||||||
if not msg.text then return end -- don't react to media messages
|
if not msg.text then return end -- don't react to media messages
|
||||||
if msg.forward_from then return end -- don't react to forwarded messages
|
if msg.forward_from then return end -- don't react to forwarded messages
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user