Checklist
Description
When sending webp file it will be send as sticker although set force_document=True

Steps to reproduce
- Prepare a webp file
- Use
send_document and set force_document=True
Code example
import pyrogram
@pyrogram.Client.on_message(pyrogram.filters.sticker)
async def handle_sticker(client: pyrogram.Client, message: pyrogram.types.Message):
sticker = message.sticker
await message.reply_chat_action(pyrogram.enums.ChatAction.UPLOAD_DOCUMENT)
file = await client.download_media(sticker, in_memory=True)
if not file:
return
await message.reply_document(
document=file,
force_document=True,
file_name="sticker_file.webp",
)
Logs
Checklist
pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zipand reproduced the issue using the latest development versionDescription
When sending webp file it will be send as sticker although set
force_document=TrueSteps to reproduce
send_documentand setforce_document=TrueCode example
Logs