Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 436 Bytes

README.md

File metadata and controls

32 lines (17 loc) · 436 Bytes

telegram

Usage

local telegram = require("telegram")

local token=""
local chatId = 0
local msg ="helloworld"

bot , err := telegram.new(token)
if err then error(err) end

reply,err = bot.send(chatId,chatMsg)
if err then error(err) end

How to generate your token

telegram api

How to get self chat Id

open your browser:

https://api.telegram.org/bot{token}/getUpdates