script_name('Telegram')
local encoding = require('encoding')
encoding.default = 'CP1251'
local u8 = encoding.UTF8
local Telegram = require('dolbogram')
local bot = Telegram('54........не покажу ))))')
bot:connect()
function main()
while not isSampAvailable() do wait(0) end
wait(-1)
end
bot:on('ready', function(data)
print('Bot started, name: ', data.first_name)
end)
bot:on('message', function(message)
if message.text == '/info' then
bot:sendMessage{chat_id = message.from.id, text = 'Kek lol'}
end
end)