Skip to content

Commit 00e0f27

Browse files
authored
Merge pull request #34 from hearot/fix/message-first
Send the kick notice before the actual kick
2 parents ee98ee9 + e840be5 commit 00e0f27

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tg_bot/modules/welcome.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,8 @@ def new_member(bot: Bot, update: Update):
255255
else:
256256
# Kicking the user because of the username
257257
user_id = new_mem.id
258+
message.reply_text("L'utente non ha uno username, quindi verrà rimosso.")
258259
chat.kick_member(user_id, until_date=time.time() + 300)
259-
bot.send_sticker(chat.id, BAN_STICKER) # banhammer electus sticker
260-
message.reply_text("L'utente non ha uno username, quindi è stato rimosso.")
261260

262261
prev_welc = sql.get_clean_pref(chat.id)
263262
if prev_welc:

0 commit comments

Comments
 (0)