rice.py 602 B

123456789101112131415161718
  1. from wbb import app
  2. from wbb.utils import cust_filter
  3. __MODULE__ = "Rice"
  4. __HELP__ = "/rice - To Forward Your Linux Rice To DE_WM's Rice Gallery"
  5. @app.on_message(cust_filter.command(commands=("rice")))
  6. async def rice(client, message):
  7. app.set_parse_mode("markdown")
  8. m = await message.reply_text("```Forwarding!```")
  9. id = message.reply_to_message.from_user.id
  10. await message.reply_to_message.forward(-1001490017589)
  11. await m.edit(
  12. f"[Your](tg://user?id={id}) Rice Forwared"
  13. " To [Rice Gallery](https://t.me/RiceGallery)",
  14. disable_web_page_preview=True
  15. )