From 09e56d230998d06e1309f83dae8f669b14fc3cbd Mon Sep 17 00:00:00 2001 From: Florian Kellermann Date: Sat, 30 Apr 2022 18:26:10 +0200 Subject: [PATCH] New /start --- telegram_bot/bot.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/telegram_bot/bot.py b/telegram_bot/bot.py index 346a610..83667ba 100644 --- a/telegram_bot/bot.py +++ b/telegram_bot/bot.py @@ -41,10 +41,10 @@ print("Webserver Token: " + str(api_handler.token)) bot = telebot.TeleBot(os.getenv('BOT_API_KEY')) -@bot.message_handler(commands=['start', 'Start']) # /start -> saving as new user and sending welcome +@bot.message_handler(commands=['start', 'Start']) def send_start(message): - """ Description + """ Sending welcome message to new user :type message: message object bot :param message: message that was reacted to, in this case always containing '/start' @@ -52,7 +52,10 @@ def send_start(message): :rtype: none """ - bot.reply_to(message, "Welcome to this share bot project. Type /help to get information on what this bot can do") + bot.reply_to(message, "Welcome to this share bot project. \ + \nType /help to get information on what this bot can do. \ + \nAlso see https://gruppe1.testsites.info \ + to start configuring your bot") @bot.message_handler(commands=['version', 'Version'])