PR0FESS0R-99 / AutoCaption-BoT

Telegram Auto FileCaption Bot
MIT License
54 stars 197 forks source link

Additional Arguments on Name #9

Open abhinavkakku opened 1 year ago

abhinavkakku commented 1 year ago

This always throws error - update.edit(custom_caption.format(file_name=motech.file_name, mote))

that mote argument cannot be found anywhere

def edit_caption(bot, update: pyrogram.types.Message):
  if os.environ.get("custom_caption"):
      motech, _ = get_file_details(update)
      try:
          try: update.edit(custom_caption.format(file_name=motech.file_name))
          except pyrogram.errors.FloodWait as FloodWait:
              asyncio.sleep(FloodWait.value)
              update.edit(custom_caption.format(file_name=motech.file_name, mote))
      except pyrogram.errors.MessageNotModified: pass 
  else:
      return
JayR1213 commented 10 months ago

Main.py Me Line Number 50 Me Is Code Ki Jagh Par

update.edit(custom_caption.format(file_name=motech.file_name, mote))

Isko Add Kardo

update.edit(custom_caption.format(file_name=motech.file_name))

Ye Code Hata Do(, mote)