Compare commits
2 Commits
1375e30547
...
e7751829ff
| Author | SHA1 | Date | |
|---|---|---|---|
| e7751829ff | |||
| 4c3263af28 |
@@ -0,0 +1,3 @@
|
|||||||
|
__pycache__
|
||||||
|
|
||||||
|
*.json
|
||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
xxhash
|
||||||
|
pytelegrambotapi
|
||||||
Reference in New Issue
Block a user