mirror of
https://github.com/Noettore/lagomareGateKeeperBot.git
synced 2025-10-14 19:16:40 +02:00
9 lines
367 B
Python
9 lines
367 B
Python
from telegram import Update
|
|
from telegram.ext import ContextTypes
|
|
from models import Users
|
|
|
|
async def updateuser(update: Update, context: ContextTypes.DEFAULT_TYPE, users: Users):
|
|
user_id = str(update.effective_user.id)
|
|
username = update.effective_user.username
|
|
fullname = update.effective_user.full_name
|
|
users.update_user(user_id, username, fullname) |