It is pretty self-explanatory. How does it work? You need to forward a message
from the channel. Then bot will return the link to channel's random message.
If you just write a basic message to the bot, bot will send default message about
wanting a forward message instead.
- Clone the project to folder where you will store the bot.
https://github.com/rogudator/tgRandoBot.git
- Open the folder.
cd tgRandoBot
- Create a .env file containing the token from @botfather . The contents of the .env should be:
ID_TOKEN=yourtoken
- Run the bot
go run main.go