Telegram Bot: How to delete/remove userpic of bot? - telegram-bot

I'm trying to remove the user picture of my telegram bot but there seems to be no option. Is it possible to delete/remove the userpic of a bot?
I know that I could upload any other photo via botfathers /setuserpic command but I want to simply remove the pic without any replacement.

Currently there seems to be no way to remove the pic completely.

Open BotFather
/mybots
Select your bot
Click Edit
Click Edit Botpic
Send a new picture to Bot Father
Bot father will add the latest photo as Display Picture.
Note: Bot father does remove the old picture. After changing the profile picture... open your bot... and check dp from there... you'll see only the last updated one.
Remember, if you check dp from the chat list(or Rows) you'll see earlier picture too. But that too gets removed once you open your bot and check dp from chat window!

Related

twilio whats app bot select one option from list

i'm doing this whatsApp bot auto response using twilio apis,
i want user to select one option from list as shown in this pics, i check this link :
https://developers.facebook.com/docs/whatsapp/guides/interactive-messages/
it's called List Messages, so i want exactly what is shown in the pics using twilio apis,
as i check this document (Creating templates with buttons) from twilio link : https://www.twilio.com/docs/whatsapp/buttons#additional-information,
i want button shows popup select one option please help, i'm trying my best to ask this question the best i can i hope u understand after editing
click on it then this popup shows
thanks advanced
These messages are called Interactive Messages and according to Meta's docs "users cannot select more than one option at the same time from a list or button message, but they can go back and re-open a previous message."
Please have a look at the Twilio Doc to see which message types are currently supported.

Open specific conversation on whatsapp from ionic 4

I have tried to call whatsapp from InAppBrowser plugin by passing url "https://api.whatsapp.com/send?phone=+91123456890&text=test".
I have also added config.xml changes as suggested
(access launch-external="yes" origin="whatsapp:*" /)
It opens the browser (when I run this on device) with send button on it to send the message to Whatsapp.
But I am unable to tap the Send button. It is not redirecting me to whatsapp application with given number.
Please can you show me some sample code or the way to achieve this.
Thanks,
i also face this problem. following code fixed my problem
window.open('whatsapp://send?phone=923130601266', '_system');
You should try to call below api in InAppBrowser.
The direct conversation will open with the number you set below the link.
Don't forget to add country code before number.
https://wa.me/your-mobile-number

How to send media files on whatsapp programmatically using click to chat feature?

I have to use whatsapp's click to chat feature for automating the process of sending messages to unsaved numbers. I am currently using selenium to automate the process. I am able to send text messages only for now. I was wondering that it might be possible to send other media files as well like images and videos.
There are 2 unused parameters in my url of click to chat feature, "source" and "data". I thought using these might enable me to send media files but I Haven't been able to do it yet.
Example URL for one of my click to chat messages:
https://web.whatsapp.com/send?phone=phoneNumHere&text=Hi&source=&data=
Can anyone confirm that either its possible or not. If its possible what would be the right way to do it?
Thanks
Similar question: Whatsapp Automated Bot not able to search in WhatsApp Contact List
Send images, videos and docs using Selenium:
//To send attachments
//click to add
driver.findElement(By.cssSelector("span[data-icon='clip']")).click();
//add file path
driver.findElement(By.cssSelector("input[type='file']")).sendKeys("FilePath");
//click to send
driver.findElement(By.cssSelector("span[data-icon='send-light']")).click();
I know it's too late, I just have to add that Whatsapp Web and Whatsapp Desktop accept paste inputs, thus if you can get your picture to the memory (I did it with VB.net took 5 mins to accomplish after a bit of googling) you can just send a paste order and it'll load it in and require and ENTER send key from you.
Part1: Sending messages to unsaved contacts
Sending media to unsaved numbers is quite a difficult task but not impossible. You can surely find XPath by text.
Part2: Yes media can be sent to contacts. I have done that in my project link : https://github.com/shauryauppal/PyWhatsapp. By using PyAutoIt you can send Pictures, PDF, Videos to the selected contacts.
Since uploading part is not the automation of web browser we auto windows using AutoIt and select the path of image/video/file to send to the user.
autoit.control_focus("Open","Edit1")
autoit.control_set_text("Open","Edit1",(PATH_OF_IMAGE_TO_SEND) )
autoit.control_click("Open","Button1")
This is just the crux of the implementation. Do refer my repo in case of more understanding.
PS: Don't forget to star repo or give credits.
Check answer Link for more info, where to download AutoIt from.
Coding Working Fine.
//To send attachments
//click to add
driver.findElement(By.cssSelector("span[data-icon='clip']")).click();
//add file to send by file path
driver.findElement(By.cssSelector("input[type='file']")).sendKeys("FilePath");
//click to send
driver.findElement(By.cssSelector("span[data-icon='send-light']")).click();
I was having the same issue but right after fixing it, I made a python wrapper so that it helps more people having the same issue.
In case you're interested to explore more about the wrapper, here is a link
https://github.com/Kalebu/alright
Here is how to send a message to media files and message to unsaved contacts
>>> from alright import WhatsApp
>>> messenger = WhatsApp()
>>> messenger.find_user('255-74848xxxx')
>>> messenger.send_message("I wish you a Merry X-mass and Happy new year ")
>>> messenger.send_picture('path-to-image',"Text to accompany image")
Sending to Multiple unsaved contacts
>>> numbers = ['2557xxxxxx', '2557xxxxxx', '....']
>>> for number in numbers:
messenger.find_user(number)
messenger.send_message("I wish you a Merry X-mass and Happy new year "

No way to accept Itunes Connect Agreement Update

I'm walking in circles trying to create a new app in Apple's Itunes Connect. Here are the steps I'm doing:
When I log in to Itunes Connect I'm seeing a screen asking me to "Review the iOS Developer Program License Agreement."
I click continue and then I'm presented with a "Manage Your Apps" screen.
I click Add New App and it sends me to... the Agreement Update again:
So I click on Members Center this time and it goes here:
Clicking on Itunes Connect sends me back to... yes, the Agreement Update once more.
How do I solve this issue? Where is the secret door to adding a new app?
I got stuck here too - here's how it went for me:
Nothing showed up in iTunesConnect's finance/agreement area at first (... even though the links kept sending me there!)
I eventually found something to view/accept at the top of the general Apple Member Center home page.
After step 2, something new finally showed up in iTunesConnect's finance/agreement area that I could accept
After above steps I was able to continue what I was trying to do in iTunesConnect which, in my case, was setting up some new promo codes for my app.
Had the same problem. Tried clearing cookies and cache per above recommendations, nothing. Waited 20m, bingo. Looks like your contract acceptance has to go through some review process, whether manual or automatic, taking a bit of time. I imagine the cookies/cache-clearing having worked was simply you cleared at the right time.
Solution: Open the Link https://itunesconnect.apple.com from Laptop Not Mobile. It will ask you to Accept the Terms and condition. While you open the link from mobile the Accept option will not visible to you. So open the link from Laptop and Accept the terms and condition.
***If you are already registered in TRACES, please login with your registered User Id (PAN), Password & PAN else register as new user*emphasized text****
enter image description here
Had the same problem. Tried clearing cookies and cache per above recommendations, nothing. Waited 20m, bingo. Looks like your contract acceptance has to go through some review process, whether manual or automatic, taking a bit of time. I imagine the cookies/cache-clearing having worked was simply you cleared at the right time.

Create an iPad application for sending the selected photo as an attachment in an email

I need to Create an iPad application for sending the selected photo as an attachment in an email.
The TO and CC address can be typed or must be able to select from contacts if they have email address added.
As I am a new guy in iPhone/iPad application can any one provide me a good way to do it. Any sample apps, paths to refer.
I recommend you take a look at MFMailComposeViewController in the documentation. The examples there will help. You'll want to include the MessageUI.framework as well. This should get you going with mailing within an app.
For the picture side, check out UIImagePickerControllerDelegate.