Skip to content

Commit

Permalink
Added START_MSG in env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh0253 committed Jun 6, 2021
1 parent cfee05f commit 8d3e81c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Check [`sample_info.py`](sample_info.py) before editing [`info.py`](info.py) fil
* `USE_CAPTION_FILTER`: Whether bot should use captions to improve search results. (True/False)
* `AUTH_USERS`: Username or ID of users to give access of inline search. Separate multiple users by space. Leave it empty if you don't want to restrict bot usage.
* `AUTH_CHANNEL`: Username or ID of channel. Without subscribing this channel users cannot use bot.
* `START_MSG`: Welcome message for start command.
* `INVITE_MSG`: Auth channel invitation message.
* `USERBOT_STRING_SESSION`: User bot string session.

Expand Down
7 changes: 6 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@
"value": "",
"required": false
},
"START_MSG": {
"description": "Welcome message for start command",
"value": "**Hi, I'm Media Search bot**\n\nHere you can search files in inline mode. Just press following buttons and start searching.",
"required": false
},
"INVITE_MSG": {
"description": "Auth channel invitation message",
"value": "'Please join @.... to use this bot'",
"value": "Please join @.... to use this bot",
"required": false
},
"USE_CAPTION_FILTER": {
Expand Down
3 changes: 2 additions & 1 deletion info.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
COLLECTION_NAME = environ.get('COLLECTION_NAME', 'Telegram_files')

# Messages
START_MSG = """
default_start_msg = """
**Hi, I'm Media Search bot**
Here you can search files in inline mode. Just press following buttons and start searching.
"""

START_MSG = environ.get('START_MSG', default_start_msg)
SHARE_BUTTON_TEXT = 'Checkout {username} for searching files'
INVITE_MSG = environ.get('INVITE_MSG', 'Please join @.... to use this bot')

0 comments on commit 8d3e81c

Please sign in to comment.