function divide(msg, beginning, ending, doing) -- разделение сообщения msg на два
if doing == "sms" then limit = 57 else limit = 72 end
local one, two = string.match(msg:sub(1, limit), "(.*)")
if two == nil then two = "" end
local one, two = one .. "...", "..." .. two ...