go-tg-bot

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

README

go-tg-bot

telegram bot build with golang

使用前准备

从letsencrypt 申请证书,将full_chained.pem改为cert.pem,privkey.pem改为key.pem放入cert目录 如果需要使用自签名证书,请参考go-telegram-bot-api/telegram-bot-api修改代码

填写配置文件:config.json 获取dialogflow的认证文件:https://dialogflow.com/docs/reference/v2-auth-setup 填写dialogflow的配置:df.json

编译运行

go get github.com/coolrc136/go-tg-bot
go build github.com/coolrc136/go-tg-bot
./go-tg-bot -c config.json

docker

docker run -itd --restart=always --name tgbot -p 8443:8443 \
    -v $PWD/cert:/bot/cert \
    -v $PWD/conf:/bot/conf \
    coolrc/tgbot

TODO

[] 增加语音支持

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL