rice.py 1.0 KB

123456789101112131415161718192021222324252627
  1. from wbb import app
  2. from wbb.utils import cust_filter
  3. from pyrogram import filters
  4. __MODULE__ = "Rice"
  5. __HELP__ = "/rice - To Forward Your Linux Rice To DE_WM's" \
  6. "Rice Gallery only works in [DE_WM](t.me/de_wm)"
  7. @app.on_message(filters.chat('DE_WM') & cust_filter.command(commands=("rice")))
  8. async def rice(client, message):
  9. if bool(message.reply_to_message) is True:
  10. app.set_parse_mode("markdown")
  11. m = await message.reply_text("```Forwarding!```")
  12. id = message.reply_to_message.from_user.id
  13. await message.reply_to_message.forward('RiceGallery')
  14. await m.edit(
  15. f"[Your](tg://user?id={id}) Rice Forwared"
  16. " To [Rice Gallery](https://t.me/RiceGallery)",
  17. disable_web_page_preview=True)
  18. elif bool(message.reply_to_message) is False:
  19. await message.reply_text(
  20. "Reply To A Message With /rice, Just Hitting /rice "
  21. + "Won't Do Anything Other Than Proving Everyone That "
  22. + "You Are A Spammer Who Is Obsessed To 'BlueTextMustClickofobia")