Conditions | 5 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | #!/usr/bin/python |
||
14 | def sticker_rep(bot, update): |
||
15 | current_time = datetime.strftime(datetime.now(), "%d.%m.%Y %H:%M:%S") |
||
16 | if update.effective_message.chat.type == "channel": |
||
17 | return |
||
18 | for word in keywords: |
||
19 | if word in update.message.text: |
||
20 | with open(sticker_path, "rb") as sticker: |
||
21 | update.message.reply_sticker(sticker) |
||
22 | print(current_time, ">", "sticker", ">", update.message.from_user.username) |
||
23 | break |
||
24 |