Create Your-own copy of config-example.jsonc and name it as user-config.jsonc.
The bot token that owner received from @botfather. Follow Telegram instructions to create a new bot user
| Required | Too important |
|---|---|
| Type | string |
| Default | place holder - YOUR BOT TOKEN |
Directory of LMDB database
| Required | Yes |
|---|---|
| Type | path |
| Default | db.lmdb |
This property will able you to personalize the way that bot will reed a feed
Source of feeds
| Required | Yes |
|---|---|
| Type | url |
| Default | https://pcworms.blog.ir/rss |
Specify format of feeds. Telegram-RSS-Bot uses BeautifulSoup to read feeds, so value must match BeautifulSoup requirements.
| Required | Yes |
|---|---|
| Type | url |
| Default | https://pcworms.blog.ir/rss |
Telegram-RSS-Bot uses CSS-Selector to find feeds and read them.
- feeds-selector: css-selector for each feed
- time-selector: time of feed.
- time-attribute: if time stored in attribute, specify it here
- link-selector: selector of feed link. could be null.
- link-attribute: if link stored in attribute, specify it here
- title-selector: selector for feed title
- title-attribute: if title stored in attribute, specify it here
- content-selector: feed contents; the main caption.
- feed-skip-condition: a condition to skip a feed. if selector had a result Bot will skip that post.
- format: title/REGEX, feed/CSS-SELECTOR, content/CSS-SELECTOR", link/REGEX
- remove-elements-selector: this elements won't be in message.
The language name that stored in strings.json or Default-strings.json file
| Required | Yes |
|---|---|
| Type | string |
| Default | en-us |
A Json file that contains all languages and strings that your bot need
| Required | Yes |
|---|---|
| Type | path |
| Default | default-strings.json |
Log level
| Required | Yes |
|---|---|
| Type | choice - info, warning, error, critical |
| Default | info |
optionally you can redirect logs to a file
| Required | No |
|---|---|
| Type | path |
| Default | Null |
Bug-reporter module counts exceptions and report them in a json or on a http server. If you need to run http server you must install Cherrypy. Read Bug-Reporter in Readme.md
- off:
"bug-reporter": "off" - offline:
"bug-reporter": { "bugs-file": "bugs.json", "use-git": true, "git-path": "/usr/bin/git" }
- online:
Create your-own copy of config-example.conf and name it as user-config.conf.
The bot token that owner received from @botfather. Follow Telegram instructions to create a new bot user
| Required | Too important |
|---|---|
| Type | string |
| Default | place holder - YOUR BOT TOKEN |
Source of xml RSS feeds
| Required | Yes |
|---|---|
| Type | url |
| Default | https://pcworms.blog.ir/rss |
The language name that stored in strings.json or Default-strings.json file
| Required | Yes |
|---|---|
| Type | string |
| Default | en-us |
A Json file that contains all languages and strings that your bot need
| Required | Yes |
|---|---|
| Type | path |
| Default | default-strings.json |
Log level
| Required | Yes |
|---|---|
| Type | choice - info, warning, error, critical |
| Default | info |
optionally you can redirect logs to a file
| Required | No |
|---|---|
| Type | path |
| Default | Null |
Directory of LMDB database
| Required | Yes |
|---|---|
| Type | path |
| Default | db.lmdb |
Bug-reporter module counts exceptions and report them in a json or on a http server. If value is online you must install Cherrypy. Read Bug-Reporter in Readme.md
| Required | No |
|---|---|
| Type | choice - off, offline, online |
| Default | off |
Add this configurations if using bug-reporter:
- reporter-config-file: Another config file that contains Cherrypy configuration
- Required: if Bug-Reporter mode is
online - Type:
path - Default: Bug-Reporter.conf
- Required: if Bug-Reporter mode is
- bugs-file: A json file for bug-reporter output. bug reporter wil save and restore exception in this file
- Required: if Bug-Reporter isn't off
- Type:
path - Default: bugs.json
- use-git: If value is true, bug-reporter will get commit, branch, and source from git.
- Required: No
- Type:
boolean - Default:
false
- git-path: specify git executable file. useful if git isn't present in path variable.
- Required: No
- Type:
path - Default: /usr/bin/git
- git-source: Manually specify a repo. This feature is used to create a direct link to the code line which risen exception. This property will be obtained from git if it does not exist.
- Required: No
- Type:
URL - Default: https://github.com/bsimjoo/Telegram-RSS-Bot