Fix: small changes
This commit is contained in:
@@ -330,12 +330,13 @@ def setwelcome(message):
|
|||||||
|
|
||||||
@bot.message_handler(commands=['welcome'])
|
@bot.message_handler(commands=['welcome'])
|
||||||
def welcome(message):
|
def welcome(message):
|
||||||
try:
|
try:
|
||||||
db = read_db()
|
db = read_db()
|
||||||
bot.reply_to(message, f'''Приветственное сообщение:
|
bot.reply_to(message, f'''Приветственное сообщение:
|
||||||
\n{db[str(message.chat.id)]}''', parse_mode='HTML')
|
\n{db[str(message.chat.id)]}''', parse_mode='HTML')
|
||||||
except Exception as e:
|
print(db[str(message.chat.id)])
|
||||||
catch_error(message, e)
|
except Exception as e:
|
||||||
|
catch_error(message, e)
|
||||||
|
|
||||||
@bot.message_handler(commands=['lock'])
|
@bot.message_handler(commands=['lock'])
|
||||||
def lock(message):
|
def lock(message):
|
||||||
@@ -379,7 +380,7 @@ def delete(message):
|
|||||||
def pin(message):
|
def pin(message):
|
||||||
try:
|
try:
|
||||||
if have_rights(message):
|
if have_rights(message):
|
||||||
bot.pin_chat_message(message.chat.id, message.reply_to_message.id)
|
bot.pin_chat_message(message.chat.id, message.reply_to_message.id, disable_notification=False)
|
||||||
except:
|
except:
|
||||||
catch_error(message, e)
|
catch_error(message, e)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user