Wrong file...lost

This commit is contained in:
NormalParameter 2022-03-13 13:35:50 +01:00
parent 3027bd8e6c
commit fc42b1de4e

View File

@ -13,6 +13,8 @@ from telebot import types
user_list = []
version = "1.5"
class User: # Currently saving users in this class to test functionality -> later database
def __init__(self, p_user_id, p_user_name, p_chat_id):
self.user_id = int(p_user_id)
@ -32,6 +34,10 @@ def send_start(message):
user_list.append(new_user)
bot.reply_to(message, "Welcome to this share bot project. Type /help to get information on what this bot can do")
@bot.message_handler(commands=['version'])
def send_version(message):
bot.reply_to(message, version)
@bot.message_handler(commands=['help']) # /help -> sending all functions
@ -92,4 +98,4 @@ if __name__ == '__main__':
main_loop()
except KeyboardInterrupt:
print('\nExiting by user request.\n')
sys.exit(0)
sys.exit(0)