AdminID = _____mening___ID____
import telebot
from telebot import types
bot = telebot.TeleBot('________________bot_tokeni_______________')
@bot.message_handler(content_types=['text'])
def send_text(message):
if AdminID != message.chat.id:
markup = telebot.types.ForceReply(selective=True)
bot.forward_message(AdminID,message.chat.id,message.message_id)
bot.send_message(AdminID, "Yuborgan shaxsning idsi: "+ str(message.chat.id)+"\nSizning javobingiz:", reply_markup=markup)
bu kod orqali boshqa foydalanuvchi tomonidan yozilgan xabarni bot menga pereslat (forward) qiladi. Keyin
"Yuborgan shaxsning idsi: xxxxxxxxxxxxx
Sizning javobingiz:"
degan xabar keladi va forcereply avtomatik shu javobga Reply (ответить) bo'ladi. Shu Replyda yozilgan xabarni bot orqali olib o'sha botga yozgan odamga yuborish kerak. Manashu yerda ozgina qiynalyapman. Kim python va telebotga tushunsa yordam bervorila !!!