Django: Facebook Bot, send automatic messages - python

Hello my question is how I can send automatic messages to my users by Facebook with a bot, I do my bot with this tutotial: https://abhaykashyap.com/blog/post/tutorial-how-build-facebook-messenger-bot-using-django-ngrok
My aplication is an intelligent security house system so I want to send a message when, for example, the levels of temperature are so high or something like that, the only thing that I want to know is this part of send the message to the correct FB user.

Related

What do I need to do to enable my discord py bot to send out notifications whenever a specified crypto wallet receives donations?

I am looking for a way to get my discord.py based bot to send out notifications in a specified channel whenever the specified wallet receives a donation. The notification message should contain the amount that was donated and the wallet address of the donator, as well as preferably the exact time the donation was made.
It needs to send out notifications for donations in BTC, XMR, ETH and LTC.
I am not sure how to go on about this and I've tried using webhooks but I can't quite figure out how to get them to do what I need them to do. I also saw that there are some API's for crypto notifications but they're mostly related to the general notifications and news about crypto, and I'm not sure how to optimize them to only send out notifications for donations to specific wallets.
Any suggestions are greatly appreciated!

Python telegram bot: how to distinguish a user with hidden profile?

I have a feedback bot that forwards messages from users to a group chat of admins. Admins reply to a message and the bot sends their response back to the person it received the message from.
Telegram has a privacy setting to disable linking a forwarded message to users' account:
example
In this case, the bot is unable to send back the response. I would like to detect that a person has a hidden account and warn them that they won't get a response. I can't seem to figure out what method/property could give me that information.
I recommend to keep track of which user message originated which message in the admin chat rather than relying on the message.forward_from attribute. Since you tagged the python-telegram-bot library, let my point you to this thread on GitHub which has the same topic.

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

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.

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

Telegram: Store chat id or Channel with bot inside?

I'm starting to learn telegram bot. My plan was to have a bot that daily sends you at a specific time a message, but also I wanted the option to manually poll the bot for getting that daily message, or a random one. Right now I have a bot running on pythonanywhere that can respond to the 2 commands, but what about sending the user the daily message at some time?
What's the way to go, create a channel and then schedule a task on my webhook to daily send the message to the channel, or store all chat-id in my service and talk to them everytime? The first one seems obviously better but I was wondering if there's some trick to make everything works in the bot.
For now I managed to create a channel, make the bot an admin and scheduled a task on the webhook to daily send a message as admin to the channel

Categories

Resources