19.03.2020, 18:48
You need to escape your text sequence:
Code:
txtmessage = require('socket.url').escape(txtmessage)
local stat, code, hdrs = request(telegram_url .. txtmessage)