Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ZAKI RAIHAN
1606878505_ossd_telegram_notif_bot
Commits
2f66ac0e
Commit
2f66ac0e
authored
Nov 01, 2019
by
ZAKI RAIHAN
Browse files
Reset chatId when change phone number
parent
65d1e89b
Changes
1
Show whitespace changes
Inline
Side-by-side
telebot/utils.py
View file @
2f66ac0e
...
...
@@ -38,6 +38,7 @@ def changeAccountPhoneNumber(username, newPhoneNumber):
checkAccountExistance
=
AccountModel
.
query
.
filter
(
AccountModel
.
ssoId
==
str
(
username
)).
first
()
try
:
checkAccountExistance
.
phoneNumber
=
newPhoneNumber
checkAccountExistance
.
chatId
=
None
checkAccountExistance
.
update
()
return
"success"
except
Exception
as
e
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment