Audio sending via Telegram Bot seems like document - api

I'm building a telegram bot. When i try to send audio using the sendAudio method it sends like a downloadable file instead of music(playing in audio player etc.).
Example of what i send:
{"title":"Blabla","performer":"Blabla","audio":"SOME_FILE_ID"}
If I don't send title and performer it sends like a voice record.
If I send title and performer it sends like a document.
But I need to send it like a music.

Related

Cannot Send Video Files Using Twilio's Whatsapp API

I am Currently on a Project Which Captures a Video Detects for a Light Source in it and if The source Exists The Video gets Recorded and saved in cloudinary.com,
What I did after was i passed the cloudinary url into the media_url of twilio create function,
There are no error codes in the response, the status is 'queued' and The dashboard at twilio shows nothing.
Where Would The Problem Be?

Ionic 4 Firebase Pushnotification

I need to know is it possible to need to send some type ID with firebase notification. Where user get notification i want to open the page and pass that ID as a parameter in api ? Is it possible ? OR any one have example ? Thanks
Depending on your need you can send a notification message, or data message, the notification message will be basically responsible for showing a push notification to the device with a title, subtitle and message depending on the operating system (in terms of the graphic environment), the data message will send a notification to the device with the data you want, this notification will not be visible to the user, now if you need to send data but also show a notification to the user you can do it in two ways:
You send a notification of data, when you receive it you process it, you show a local notification and you send by parameter the id that you received.
Send a push notification (with the id specifically in some side as you wish) this is shown by default to the user, when the user opens it, you process the id, and send it by parameter.
I recommend the first option, here you will find more information
Firebase Cloud Messaging

How to attach files like excel,word ,image,pdf etc to Hangouts chat on button click

I am trying to send a object as response from python to Hangouts chat which in turn should be converted to excel for downloading
As of now i am just returning a html content as response with hard coded value

Telegram bot can not send inline query to a chat

I created an inline bot, that works great: if I type #BOT_NAME 1234, it posts an inline result from the bot.
Now I wish that bot could post that result by itself.
But when I call sendMessage #BOT_NAME 1234, the message from the bot is just the text #BOT_NAME 1234. If I retype the same text as a telegram user, the inline is working again.
Please see my image to this:
What parameter do I miss, or is it couldn't be done at all?

How to send image as attachment using Mandrill API in iOS

I am integrating Mandrill API to send emails from iOS. I m unable to send image as attachment with email. I am using api/1.0/messages/send.json with proper images JSON described in their doc. I have encode image to base64 string as well but when I send it I just get email without attachment.