Skip to content

Commit 44557c1

Browse files
committed
Improve start and privacy text
1 parent ec12803 commit 44557c1

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

bot/main.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def start_handler(update: Update, context: CallbackContext):
3838
msg.reply_text(f'👋 Hello, I am {context.bot.name}.\n'
3939
f'I can notify you about events in your public GitHub repositories. '
4040
f'You can also reply to my messages to post comments to GitHub right from Telegram. '
41-
f'I am an improved version of the telegram provided githubbot.\n\n'
41+
f'I am an improved version of the Telegram GitHub Bot.\n\n'
4242
f'Use /settings to get started.')
4343

4444

@@ -57,16 +57,29 @@ def help_handler(update: Update, context: CallbackContext):
5757
msg.reply_text(f'<b>Github notification guide.</b>\n\n{text}\n\n'
5858
f'Note that GitHub Help has more in depth guides on how to install GitHub Apps <a href="https://help.github.com/articles/installing-an-app-in-your-personal-account/#installing-a-github-app-in-your-personal-account">in your personal account</a> or <a href="https://help.github.com/articles/installing-an-app-in-your-organization/#installing-a-github-app-in-your-organization">in your organisation</a> if you are having trouble with step 1.',
5959
reply_markup=InlineKeyboardMarkup([
60-
[InlineKeyboardButton('Add me to a group', url=f'https://telegram.me/{context.bot.username}?startgroup=start')]
60+
[InlineKeyboardButton('Add me to a group',
61+
url=f'https://telegram.me/{context.bot.username}?startgroup=start')]
6162
]),
6263
parse_mode=ParseMode.HTML,
6364
disable_web_page_preview=True)
6465

6566

66-
67-
def privacy_handler(update: Update, _):
67+
def privacy_handler(update: Update, context: CallbackContext):
6868
msg = update.effective_message
69-
msg.reply_text(f'You have no privacy.')
69+
msg.reply_text(
70+
f'🔏 Privacy policy for {context.bot.name}\n\n'
71+
f'GithubBot Revised is an open source bot built by <a href="https://telegram.me/jsmnbom">Jasmin Bom</a>.\n\n'
72+
f'GithubBot revised stores GitHub login tokens - if you logout they will be deleted from the server.\n'
73+
f'To prevent overloading GitHub servers, data received from GitHub is also cached according to GitHub server headers.\n\n'
74+
f'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT '
75+
f'LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. '
76+
f'IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, '
77+
f'WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE '
78+
f'OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'
79+
f'The MIT-licensed source code for GithubBot revised can be found at <a href="https://github.com/jsmnbom/githubbotrevised">GitHub</a>.',
80+
parse_mode=ParseMode.HTML,
81+
disable_web_page_preview=True
82+
)
7083

7184

7285
def login_handler(update: Update, context):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy