让 telebot 将新用户静音 24 小时

Make telebot mute new user for 24 hours

我有这个代码

import time
from time import time
bot = telebot.TeleBot('<MY-BOT-TOKEN>')
@bot.message_handler(content_types=[
    "new_chat_members"
])
def mut(message):
    bot.restrict_chat_member(message.chat.id, USER_ID , until_date=time()+86400)

它会监听新用户,并且有静音命令,但我如何使用 TeleBot 获取他们的 ID?

def mut(message):
    bot.restrict_chat_member(message.chat.id, message.from_user.id, until_date=time()+86400)