Telegram Bot send message to another #username - telegram-bot

everyone) When a user push button, BOT should send a message to another #username as a text, I mean, this message will be forward to another profile

Related

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

Audio sending via Telegram Bot seems like document

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.

How to send the notification mail to user?

I am using this link http://guides.rubyonrails.org/action_mailer_basics.html to send the mail notifications to user upon the creation,deletion and edition of the user and will get the mail.It works fine for me.
Now What i want is when the user is created at the time of the creation we will have the radio button for enabling the mail notification if it is enabled then only it will get the notification mail.So what i need to do????
Any help would be appreciated..
Thank you
In the UserController code only send an e-mail if the user attribute to opt into email is set:
if #user.save
# Tell the UserMailer to send a welcome Email after save
# IF MAIL NOTIFICATIONS ARE ENABLED
if #user.enable_mail_notification then
UserMailer.welcome_email(#user).deliver
end
end

Xcode in app email adding a From text field

Ok, so I have successfully made my first in-app Email app using MFMAilComposer. I have the toRecipients textfield added, as well as subject and body etc. So I understand that the email will not send if I use the simulator and will send with an iPhone. However, when a person receives the email, how is that person supposed to know whom he received it from? With this in mind, a "From" field should be in order. I appreciate all answers, and thanks in advance :)
You don't have to handle this, the mail composer does it for you. When the composer is shown it defaults to the users default email account but if they want to choose which email address they are sending from they can simply tap their email and a list will expand allowing them to choose from which of their emails to send the message.

getting from email address when using MFMailComposeViewController

i want to show user from which account he is going to send email when he is going to send an email using my app and i am using MFMailComposeViewController. so what is the way of getting the from email address.
There is no way to get this information. Mail sent via MFMailComposeViewController is always sent from the user's default address.
Mail sent via MFMailComposeViewController is always sent from the user's default address.
User's default address is selected by default but the user can switch the accounts. Anyway, no way to get this info back into your app.