Giter Site home page Giter Site logo

Comments (6)

joaosouz4dev avatar joaosouz4dev commented on May 19, 2024

can you send us your used shipping function?

from venom.

antonio-couto avatar antonio-couto commented on May 19, 2024

This is the parameters on my call:

image

I am using this function from the file:
C:\Source\NodeJs\venom\src\api\layers\sender.layer.ts

/**

  • Sends file from path
  • @param to Chat id
  • @param path File path
  • @param filename
  • @param caption
    */
    public async sendFile(
    to: string,
    path: string,
    filename: string,
    caption?: string
    ) {
    const base64 = await fileToBase64(path);
    return this.sendFileFromBase64(to, base64, filename, caption);
    }

from venom.

antonio-couto avatar antonio-couto commented on May 19, 2024

I making more tests and i found out that the problem with caption is on pdf files, image file its working.

image

from venom.

antonio-couto avatar antonio-couto commented on May 19, 2024

more test, for now the only file that works caption is on image:

image

from venom.

smashah avatar smashah commented on May 19, 2024

@antonio-couto You can't add a caption (even on the app) when sending a document. Send the document then reply to the message if you want to caption it.

from venom.

joaosouz4dev avatar joaosouz4dev commented on May 19, 2024

@antonio-couto

that's the answer,

@antonio-couto You can't add a caption (even on the app) when sending a document. Send the document then reply to the message if you want to caption it.

you can also enter the name of the file you want. i will close this topic

from venom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.