Discover Packages
github.com/altfoxie/gershik-feed-bot
command
module
Version:
v0.0.1-test
Opens a new window with list of versions in this module.
Published: Mar 9, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
gershik-feed-bot
A Telegram feed bot made mainly for my friend @gershik .
What is it?
This bot polls different Telegram channels and collects all its messages into a single feed.
You can create multiple feeds, each with its own channels.
Also, there is a filtering feature, so you can filter out messages that contain certain text.
Getting started
Create a bot using @BotFather .
Grab your API ID and API hash from here .
Get the binary from releases or build it yourself.
Run it without any arguments to generate a config file.
Fill in the config file config.yml
.
Note: You can get your Telegram ID by sending /getid
to @myidbot .
6. Run it again and enjoy!
Building
Install Go .
Clone this repository.
Run go build
in the repository directory.
Configuration file
Bot
Name
Type
Description
token
string
Bot token.
whitelist
[]int64
List of users who can use the bot.
User
Name
Type
Description
session_path
string
Path to the session JSON file.
app_id
int
API ID from here .
app_hash
string
API hash from here .
Poller
Name
Type
Description
storage_path
string
Path to the storage JSON file.
inteval
int
Polling interval in seconds.
channels_interval
int
Interval between polling different channels in seconds.
mark_as_unread
bool
Mark messages as unread after forwarding.
filters
[]Filter
List of filters.
Filter object
Name
Type
Description
channels
[]int64
List of channels IDs where the filter should be applied.
text
string
Text to filter, not case sensitive.
License
MIT
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Package config provides a simple configuration system.
Package config provides a simple configuration system.
Package storage provides a persistent storage for feed data.
Package storage provides a persistent storage for feed data.
Click to show internal directories.
Click to hide internal directories.