Fix silly syntax error
This commit is contained in:
parent
20914fcfd9
commit
9a8243e069
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -62,7 +62,7 @@ def register(message):
|
|||
db.session.add(chat)
|
||||
db.session.commit()
|
||||
try:
|
||||
bot.send_message(chat.user_id, "Here's your shiny new token for {name}: `{token}`".format(token=chat.token, name=chat.get_friendly_name(bot).replace('_', '\_'),), parse_mode='Markdown')
|
||||
bot.send_message(chat.user_id, "Here's your shiny new token for {name}: `{token}`".format(token=chat.token, name=chat.get_friendly_name(bot).replace('_', '\_')), parse_mode='Markdown')
|
||||
bot.send_message(message.chat.id, "Badabing, badaboom. Token PM'ed to you!", parse_mode='Markdown')
|
||||
except ApiException as e:
|
||||
if e.result.status_code == 403:
|
||||
|
@ -158,7 +158,7 @@ def manage_show_token(callback):
|
|||
back_button = telebot.types.InlineKeyboardButton("\u00ab Back", callback_data='managestart:')
|
||||
markup.add(show_button, revoke_button, back_button)
|
||||
|
||||
bot.edit_message_text("Chat \"{name}\"\n token: `{token}`".format(name=chat.get_friendly_name(bot).replace('_', '\_'),, token=chat.token), reply_markup=markup, parse_mode='Markdown', chat_id=callback.message.chat.id, message_id=callback.message.message_id)
|
||||
bot.edit_message_text("Chat \"{name}\"\n token: `{token}`".format(name=chat.get_friendly_name(bot).replace('_', '\_'), token=chat.token), reply_markup=markup, parse_mode='Markdown', chat_id=callback.message.chat.id, message_id=callback.message.message_id)
|
||||
|
||||
@bot.callback_query_handler(func=lambda call: call.data.startswith('managerevoke:'))
|
||||
def manage_revoke_token(callback):
|
||||
|
|
Loading…
Add table
Reference in a new issue