New /start

This commit is contained in:
Florian Kellermann 2022-04-30 18:26:10 +02:00
parent 81200e0c52
commit 09e56d2309

View File

@ -41,10 +41,10 @@ print("Webserver Token: " + str(api_handler.token))
bot = telebot.TeleBot(os.getenv('BOT_API_KEY')) 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): def send_start(message):
""" Description """ Sending welcome message to new user
:type message: message object bot :type message: message object bot
:param message: message that was reacted to, in this case always containing '/start' :param message: message that was reacted to, in this case always containing '/start'
@ -52,7 +52,10 @@ def send_start(message):
:rtype: none :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']) @bot.message_handler(commands=['version', 'Version'])