برای نمایش نتیجه با کد HTML5 و ربات تلگرام کمک کنید

سلام
من در حال یادگیری برنامه نویسی هستم و در تلاش بودم تا یک بازی را در HTML ایجاد کنم ، بازی نمونه را ایجاد کرده ام ، اما با نمایش نمرات برای اعضای خود با مشکل روبرو هستم.
https://tcrevival.github.io/index.html
این بازی برای گروه Telegram من ایجاد شده است ، جایی که کاربر می تواند پاداش های خود را بازی کند و برنده شود.
من با موفقیت راه اندازی Bot Telegram Game Bot را تنظیم کردم و آیا اعضای گروه من می توانند با استفاده از BOT بازی را راه اندازی کنند
بازی در زیر ذکر شده است
http://t.me/tcrev -> بازی (برای یافتن بازی باید در بالا حرکت کنید)
من صفحه تلگرام را برای نمایش نمرات برتر برای کاربران دیده ام.
https://core.telegram.org/bots/api#games
به نظر می رسد برای نمایش نام باید با تابع GetGameHighsCores تماس بگیرم
من کد پایتون را از جستجوی Google کپی کردم
import telegram
from telegram import Update
from telegram.ext import ApplicationBuilder, ContextTypes, CommandHandler
# Replace with your bot token
BOT_TOKEN = 'YOUR_BOT_TOKEN'
async def get_high_scores(update: Update, context: ContextTypes.DEFAULT_TYPE):
"""Retrieves and displays game high scores."""
try:
# Replace with the user_id or chat_id of the user you want to get scores for
user_id = update.effective_user.id
chat_id = update.effective_chat.id
# Get high scores
high_scores = await context.bot.get_game_high_scores(user_id=user_id, chat_id=chat_id)
# Format the high scores as HTML
html_text = "High Scores:
"
if high_scores:
for score in high_scores:
html_text += f"{score.user.username}: {score.score}
"
else:
html_text += "No high scores yet.
"
# Send the HTML formatted message
await context.bot.send_message(chat_id=chat_id, text=html_text, parse_mode=telegram.constants.ParseMode.HTML)
except Exception as e:
print(f"Error getting high scores: {e}")
await context.bot.send_message(chat_id=chat_id, text="Error getting high scores.")
# Create the Telegram Application
if __name__ == '__main__':
application = ApplicationBuilder().token(BOT_TOKEN).build()
# Add a command handler for the high scores command
high_scores_handler = CommandHandler("highscores", get_high_scores)
application.add_handler(high_scores_handler)
# Start the bot
application.run_polling()
من نمی دانم چگونه این کد را در پرونده HTML تهیه کنم یا نحوه ادغام یا تغییر این کد برای کار در پرونده بازی HTML من.
ممنون