New try for bot and bot_updates #80
@ -80,14 +80,6 @@ def send_start(message):
|
|||||||
|
|
||||||
:rtype: none
|
:rtype: none
|
||||||
"""
|
"""
|
||||||
new_user = User(int(message.from_user.id), message.from_user.first_name, int(message.chat.id)) # now Database driven CHANGE
|
|
||||||
existing_already = False
|
|
||||||
for known_user in user_list:
|
|
||||||
if known_user.user_id == new_user.user_id:
|
|
||||||
existing_already = True
|
|
||||||
if existing_already == False:
|
|
||||||
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")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user