Skip to content

Commit

Permalink
some minor fixes (#2)
Browse files Browse the repository at this point in the history
some minor fixes (#2)
  • Loading branch information
bralbral committed Sep 24, 2023
1 parent d56f2bc commit f9492f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
4 changes: 3 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Use this bot for communicate with users in case you do not want to provide your

## Usage

Messages with an available [content type](./src/bot/handlers/users.py#L19) will be transfered to admin group or admin chat.
Messages with an available [content type](./src/bot/handlers/users.py#L24) will be transfered to admin group or admin chat.

*(See variable `chat_id` from [config.yaml](./deploy/example.config.yaml#L6))*

Expand Down Expand Up @@ -48,6 +48,8 @@ Run:

### Install with Docker

> Stable release with `main` tag on [dockerhub](https://hub.docker.com/r/bral1488/telegram-feedback-bot/tags)
Just copy [docker-compose.yml](./deploy/example.docker-compose.yml) and fill in [config.yaml](./deploy/example.config.yaml).

Run containers:
Expand Down
3 changes: 2 additions & 1 deletion deploy/example.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ version: '3.7'
services:
bot:
container_name: telegram-feedback-bot
restart: always
image: bral1488/telegram-feedback-bot:main
stop_signal: SIGINT
restart: always
volumes:
- /etc/timezone:/etc/timezone
- ./config.yaml:/app/config.yaml
Expand Down
15 changes: 1 addition & 14 deletions src/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,5 @@

ROOT_DIR: str = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

START_MESSAGE: str = """
<h1>
👋 Hello!
</h1>
<p>
I can redirect to recipient <b>text, audios, voice messages, images, files</b> to recipient.
</p>

<p>
Just send your message and wait for a response!
</p>
"""

__all__ = ["ROOT_DIR", "START_MESSAGE"]
__all__ = ["ROOT_DIR"]

0 comments on commit f9492f4

Please sign in to comment.