[REPO REFACTOR]: changed to a better git repository structure with branches

This commit is contained in:
2025-11-01 06:12:45 +01:00
parent b218dd3f77
commit f0b04fcaad
36 changed files with 1366 additions and 0 deletions

18
util/messages.py Normal file
View File

@@ -0,0 +1,18 @@
from telegram import Update
from telegram.ext import ContextTypes
async def respond(context: ContextTypes.DEFAULT_TYPE, chat_id: int, message: str):
await context.bot.send_message(
chat_id=chat_id,
text="✅ Mensaje recibido",
disable_notification=True
)
def delete_user_message(func):
async def wrapper(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
await func(self, update, context)
try:
await context.bot.delete_message(update.effective_chat.id, update.message.message_id)
except:
pass
return wrapper