Skip to content

A bot for telegram, that sends a link to a random channel post.

Notifications You must be signed in to change notification settings

rogudator/tgRandoBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tgRandoBot is a telegram bot that generates links to a random channel post

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.

How to run

  1. Clone the project to folder where you will store the bot.
https://github.com/rogudator/tgRandoBot.git
  1. Open the folder.
cd tgRandoBot
  1. Create a .env file containing the token from @botfather . The contents of the .env should be:
ID_TOKEN=yourtoken
  1. Run the bot
go run main.go

About

A bot for telegram, that sends a link to a random channel post.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages