Skip to content

How can i change token from database in flask #1934

Answered by hiddify-com
hiddify-com asked this question in Q&A
Discussion options

You must be logged in to vote

Just need to create a new Bot with empty token

bot = telebot.TeleBot("") 

Then change bot token:

def register(new_token):
     bot.token=new_token

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@hiddify-com
Comment options

@hiddify-com
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hiddify-com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1933 on March 02, 2023 07:53.