Selenium Webhook equivalent / listen to new data from telegram without bot - selenium

I have a web scraping project that requires the scraper to wait for when there is new data. I thought about reverse engineering the websocket but that might take some time.
if you know how to work with the telegram websockets to get data without a bot I'd appreciate it
So what I will need to do is get the web scraper to wait for new messages on a telegram chat and only execute action when a new message is detected, it might need work with javascript event listeners or something but I wanted to ask for the most efficient solution for the given problem.
thanks

Related

Trigger smart speaker announcement via HTTP request

I have a smart speaker with buit-in Google Assistant which I want to automatically make announcements at specific times. The times are determined by a program I wrote running in the cloud which can send HTTP POST requests at those times (e.g. to trigger a Telegram bot or anything else with a usable API).
Is there a way to send POST requests directly to my smart speaker with a message to announce? Or would I need some intermediary app/service to integrate with Google Assistant?

Using webhooks to retrieve messages from google chat api

I'm trying to create a bot to send and receive messages through Google Chat and I wanted to know if there is any way I can retrieve messages using the webhooks? If not, is there anyway I can request the messages in the chat API without an public IP?
NOTE: if there isn't, I have read the https://developers.google.com/chat/how-tos/service-accounts and I wanted to understand: if I setup a Flask server, will google be able to send me the push notifications back, or do I need a public IP?
I have solved the problem.
There is no way, you must register on google as a developer.
Sorry for taking so long to post the solution

Telegram bot authentification

A web service that contains all the methods for processing data is stored by Azure. In this case, only my telegram can process this data. Other applications are not allowed. But there is a possibility of expanding the service.
How do I know that the service is used by my telegram bot?
How to authenticate the application.
Well, I tried to use OAuth2.0, but i think it is not correct, because user is already authentificated with telegram, when he use telegram bot. My idea was to send a link to google auththentification in the beginning of bot job. By th way, ok, we know user`s data. May be I can check: Id, login etc. But some hacker can substitute this id
How can I make sure that Webhook requests are coming from Telegram? If
you‘d like to make sure that the Webhook request comes from Telegram,
we recommend using a secret path in the URL you give us, e.g.
www.example.com/your_token. Since nobody else knows your bot’s token,
you can be pretty sure it's us.
Telegram Bot FAQ

How to check, that telegram bot is alive automatically?

I wrote a telegram bot, but it go frizes sometimes, and don't answer to the messages.
How to check the state of bot automaticaly (for exmaple from another server).
I think, that I need something like heartbeat check:
Send a message from non-webhook server.
Catch telegram response
If response not comes in reasonable time, bot is die.
But, I need telegram client on linux server to do it.
Do you have any ideas, how to check telegram bot state?
You need to find out why the bot freezes, the health check is not the answer to your problem. However If you really want to implement some kind of automated health check, you need to use Telegram CLI to send requests to your own bot in fixed intervals and check for incoming messages from that CLI user.
If you are experiencing problem with Telegram's webhook, try long pulling the updates using the getUpdates method. I know a few high traffic bots that use that method, Webhooks have a max amount of concurrent requests so if you just delay them for a few milliseconds, it will start accumulating delay.

Testing an api through a GUI for client

My boss wants a GUI based api request sender - He initially asked for something already out there (so I don't have to build anything)
Anyone know of an online resource or tool that will allow you to, say, send 1000 requests over 10 minutes?
If you're talking about a web based API, take a look at Apache JMeter (http://jmeter.apache.org/)
soundcloud has a nice api console using apigee. http://developers.soundcloud.com/console