Skip to content

Latest commit

 

History

History

telegram

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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