Telegram Bot for fetching the last messages from the famous app Sensum to a chat or a group
-
Set up the bot token, eth contract address and other variables in
config.json
-
Set up the
$GOPATH
and such -
Build the executable
$ go build src/*
Simply run the executable
$ ./bot
The contract.go
file is autogenerated by taking the ETH smart contract ABI.
In order to generate it, you will have to have abigen
installed, and run the following:
$ abigen --abi=./Sensations.abi --pkg=main --type=contract --out=contract.go