Spaces:
Runtime error
Runtime error
Commit
·
94a70ff
1
Parent(s):
a915bb9
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ import sqlite3
|
|
14 |
import re
|
15 |
from bs4 import BeautifulSoup
|
16 |
|
17 |
-
bot_token = '5415345086:
|
18 |
admin = 37087739
|
19 |
|
20 |
#############################################
|
@@ -23,13 +23,6 @@ EXPECT_STATUS, EXPECT_USERNAME, EXPECT_PASSWORD, EXPECT_SUBMIT, EXPECT_BACK, EXP
|
|
23 |
|
24 |
def start(update: Update, context: CallbackContext):
|
25 |
chat_id = update.effective_chat.id
|
26 |
-
user_data = check_existance(chatID=chat_id)
|
27 |
-
update.message.reply_text('K')
|
28 |
-
if not user_data:
|
29 |
-
create_user(chatID=chat_id, username='', password='')
|
30 |
-
user_data = {'id': 0, 'chatID': chat_id, 'username': None, 'password': None}
|
31 |
-
else:
|
32 |
-
user_data = dict(zip(['id', 'chatID', 'username', 'password']))
|
33 |
text = ('به ربات پرتال دانشجویی خوش آمدید 🌹')
|
34 |
update.message.reply_text(text, reply_markup=main_keyboard)
|
35 |
|
|
|
14 |
import re
|
15 |
from bs4 import BeautifulSoup
|
16 |
|
17 |
+
bot_token = '5415345086:AAFsaAWlJcgMd0Wii1Z8UgzpgSrfSZM1ZWw'
|
18 |
admin = 37087739
|
19 |
|
20 |
#############################################
|
|
|
23 |
|
24 |
def start(update: Update, context: CallbackContext):
|
25 |
chat_id = update.effective_chat.id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
text = ('به ربات پرتال دانشجویی خوش آمدید 🌹')
|
27 |
update.message.reply_text(text, reply_markup=main_keyboard)
|
28 |
|