Can a telebot be able to send sms to its user? - python

I'm trying to make a telegram not which at some point is like to send an SMS to the user or verify something through SMS but I'm not sure if the telegram API allows for that. If it is possible, please his can I utilize it?
Note:I'm just a beginner in python so some things might seem unclear to me so please be easy on me

Firstly, Telegram bot API has nothing to do with user phone numbers. Due to a variety of security reasons, it doesn't give bots access to such information and if we just suppose that, why should it send SMS? It's not the responsibility of a messenger like Telegram.
You can just send users notifications on Telegram or asks them for their numbers, then send SMS by another service.

Related

Any way to retrieve phone number from incoming sms in autopilot

I am creating a Twilio Autopilot program that works on the SMS channel. Currently, I set up the sms channel using the messaging URL and webhooks according to the instructions in the SMS setup section here: https://www.twilio.com/docs/autopilot/guides/how-to-build-a-chatbot.
This works, but I am trying to find a way to retrieve the phone number from the incoming SMS to try and match it to a user to provide context to the bot ahead of time. Is there any way to accomplish this?
I am coding this in Python but any advice would be appreciated regardless of language.
The Autopilot webhook request is documented here and shows the parameters that are sent with each request.
In this case, you are looking for the UserIdentifier parameter in the incoming request, which, in the case of voice or SMS channels, will be the user's phone number.
Note that the request is made in the application/x-www-form-urlencoded format.

How to reply to the user DM via Slack API?

My setup is as follows: I have Dialogflow bot added as an app. The bot interacts with Slack and Dialogflow. The script uses dialogflow_fulfillment to handles the requests to return the response back to Dialogflow. At the same time, I want the bot to interact with the users like questionaries or buttons without routing back to Dialogflow. I can get it to post messages to any specified channel using client.chat_postMessage(). However I want to the bot to reply directly to the user when the user DM the app. I am not sure how this can be achieved. Please advise.
It turns out that using one app to monitor another app is not allowed by Slack. So this was not possible. The only possible way is to merge it to one app and use event api on it.

How to create a whatsapp bot?

I would like to create bot in whatsapp. The Idea is here when a user sends a whatsapp message to my phone number that should reply to them.
I have researched twillio since it's like a sandbox twillio uses it own whatsapp number and So when a new user comes the user should send the sandbox number. Then I searched for whatsapp API I don't have any company or anything so there I can't use the official whatsapp API.
Is there some other way of using whatsapp API when I recieve a message it should reply immediately.
Unfortunately, since WhatsApp is only opening its APIs to its trusted/business partners, you can only access it using their services. Some of the examples includes,
Vonage
Infobip
Wati
Twilio as you mentioned
If these are not enough for you, you can always write your own bot in Python using selenium to scrape the web app for WhatsApp and listen to new message by checking the page regularly.

How to save a message from a telegram chat and send other messages with your own account?

I want to build a code that save a certain telegram message, from a user, as an input (ex: "David: Hello how are you doing?") and be able to send a certain message back, with my own telegram account (ex: "Me: I'm fine! How are you?")
Is there a way I can do this in python without using a telegram bot? Because I dont think bots can actually connect to your own telegram account and send messages
Unfortunately, the only way to achieve this kind of results is by creating your own customized Telegram app, take a look at the API docs at https://core.telegram.org/api

How to login as user rather bot in discord server and run commands?

Slack API provides you two options: use app as a bot and as a logged in user itself. I want to create App that will be working as a user and run channel commands. How can I do with discord.py?
Discord.py is no longer maintained to work on user accounts, so given the recent updates in the user api, it is no longer the ideal framework which selfbots should be written in.
There are a number of selfbot api libs out there, but the best one that's written in python is this: https://github.com/Merubokkusu/Discord-S.C.U.M
P.S. selfbotting against tos - so be careful (respect rate limits and don't act like a bot)
As Wright has commented, this is against discord's ToS. If you get caught using a selfbot, your account will be banned. However, if you still REALLY want to do this, what you need to do is add/replace bot.run('email', 'password') to the bottom of your bot, or client.run('email', 'password') to the bottom depending on how your bot is programmed.

Categories

Resources