Wrong file...lost
This commit is contained in:
parent
3027bd8e6c
commit
fc42b1de4e
@ -13,6 +13,8 @@ from telebot import types
|
|||||||
|
|
||||||
user_list = []
|
user_list = []
|
||||||
|
|
||||||
|
version = "1.5"
|
||||||
|
|
||||||
class User: # Currently saving users in this class to test functionality -> later database
|
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):
|
def __init__(self, p_user_id, p_user_name, p_chat_id):
|
||||||
self.user_id = int(p_user_id)
|
self.user_id = int(p_user_id)
|
||||||
@ -32,6 +34,10 @@ def send_start(message):
|
|||||||
user_list.append(new_user)
|
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.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
|
@bot.message_handler(commands=['help']) # /help -> sending all functions
|
||||||
@ -92,4 +98,4 @@ if __name__ == '__main__':
|
|||||||
main_loop()
|
main_loop()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('\nExiting by user request.\n')
|
print('\nExiting by user request.\n')
|
||||||
sys.exit(0)
|
sys.exit(0)
|
Loading…
Reference in New Issue
Block a user