• 1402/04/03

ارور missing 1 required positional argument: 'text' :

این کدمه ی ارور میده نمیفهمم واس چیه

 

import os
import json
from collections import defaultdict
from pyrogram import Client
from pyrogram import Client, filters
from pyrogram.types import Message, ReplyKeyboardMarkup, ReplyKeyboardRemove, InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery
#join_check() 
#------------------------------------------------
BOT_TOKEN= os.environ.get("BOT_TOKEN", "***************")
APP_ID= int(os.environ.get("APP_ID", *****))
API_HASH= os.environ.get("API_HASH", "********")
#------------------------------------------------
def Tree():
    return defaultdict(Tree)
user_pucet= Tree()
#------------------------------------------------

botten=InlineKeyboardMarkup
(
    [
        [
            InlineKeyboardButton(text="عضویت در چنل ما",callback_data="https://t.me/RemGanG"),
            InlineKeyboardButton(text="عضو شدم", callback_data="dokmeh1.2")
        ]
    ]    
)


def join_checker(_,client:Client, message:Message):
    try:
        user_obj= client.get_chat_member(chat_id= "RemGanG",user_id= message.from_user.id)
        print(user_obj)
        return not user_obj.status == "left" or user_obj.status == "kicked" #True
    except :
        #print(e) \ Exception as e
        Message.reply_text("jooooooiiiiinnnnnnnn sssshhhhhhhooooooooooooooooooo")
        #return false

join_fillter=filters.create(join_checker)


#------------------------------------------------
#plugins = dict(root="plugins")
app = Client("my_bot",
    api_id=APP_ID,
 #   plugins=plugins,
    api_hash=API_HASH,
    bot_token=BOT_TOKEN)
#------------------------------------------------
@app.on_message(filters.command("start") & join_fillter)
async def hander(client: Client, message: Message):
    await message.reply_text("اسمت؟")
    user_pucet[message.from_user.id]["step"] = 1
#------------------------------------------------
@app.on_message(filters.text &~ filters.command("start") & join_fillter)
async def hander(client: Client, message: Message):
    if  user_pucet[message.from_user.id]["step"] == 1:
        
        with open("databace/users.json","r+") as file:
            user_databace = json.load(file)
            user_databace[message.from_user.id]= message.text
            file.seek(0)
            json.dump(user_databace,file,indent=4)
            await message.reply_text("اطلاعاتت ثبت شد ! بگوو....")
        user_pucet[message.from_user.id]["step"] = 2
    elif  user_pucet[message.from_user.id]["step"] == 2:
        await client.send_message(chat_id=966511056,    text=message.text)
        await message.reply_text("فرستونیدممممممممممممم")
        user_pucet[message.from_user.id]["step"] = 0
#------------------------------------------------
app.run()

 

TypeError: Message.reply_text() missing 1 required positional argument: 'text'
  • 1402/04/03
  • ساعت 19:45

کاربرگرامی ! لطفا به پیام صوتی زیر گوش دهید.


logo-enamadlogo-samandehi