• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Send Image from Telegram to Whatsapp through waapi

Status
Not open for further replies.

lohith

Member
Hello!!

Workflow - Whenever I send an image to my telegram bot, it should send that image file to whatsapp group through Waapi.

What did I do?

I created a telegram bot using botfather as suggested by pabbly connect and I set up the trigger event for that bot as "SET WEBHOOK/WATCH UPDATES". I ran the test by sending an image file to the bot and it was successful in fetching the webhook data and I got something like this for API RESPONSE

1618375783490.png


I got to understand that the webhook fetches file_id, dimensions, etc.


Where i am stuck ?

I am not able to fetch that file and route it through WAAPI to send it to my whatsapp contacts.


Please help me out to resolve this. If you have any other workaround for this please feel free to suggest me.

TIA
 
Solution
P
Hey Lohith,

Whenever I send an image to my telegram bot, it should send that image file to whatsapp group through Waapi.

We have added the endpoint " Get file " to Telegram Bot Action.

2021-04-14.png


With the help of this, you can now get the image that you are trying to send on WhatsApp through WA API from Telegram.
After getting the file from the " Get File " endpoint of "Telegram Bot", you can then map this in the WA API's " Send File ".


I hope this might help you.
P

Pabblymember11

Guest
Hey Lohith,

We are working on your use case and will update you shortly.
 
P

Pabblymember11

Guest
Hey Lohith,

Whenever I send an image to my telegram bot, it should send that image file to whatsapp group through Waapi.

We have added the endpoint " Get file " to Telegram Bot Action.

2021-04-14.png


With the help of this, you can now get the image that you are trying to send on WhatsApp through WA API from Telegram.
After getting the file from the " Get File " endpoint of "Telegram Bot", you can then map this in the WA API's " Send File ".


I hope this might help you.
 
Solution
P

Pabblymember11

Guest
Hey @lohith

As we checked the Google My Business Action the Media Source URL, which you are providing it doesn't have permission to get access publicly or doesn't exist.

2021-04-26_13h00_19.png


Response -

2021-04-26_12h58_15.png


On browser response -

You can check it by firing the same Image URL in ur new tab.

2021-04-26_12h58_30.png


So kindly provide the URL with the existing file.
 
P

Pabblymember11

Guest
Hey @lohith

While checking the Telegram action and in the GMB action.

The mistake was in the GMB's Media Source URL as it was missing the "file" words in the URL.

2021-04-30_16h38_04.png


***Tip - Pick the ideal size of the Image from the Trigger to map the image in the "Get File" endpoint of the telegram, as GMB takes the specific size of the image.

2021-04-30_16h40_58.png



Then map that file_id in the GMB's media source URL.

Although we have done that for you in your workflow.

So please check and try.
 
Status
Not open for further replies.
Top