how to know if a telegram chat is disabled using telethon? - web-scraping

I'm trying to know if a telegram chat was deleted \ disabled using telethon, the simplest way I found to do that is by trying to get the chat entity and see what errors come up, the problem is that when I ask for a chat entity that is disabled, I get its past entity from session cashing and don't get any indication for the chat is disabled. I tried to disable the session cashing but when I do that, I can't get chat entities using their ID - I must have this ability for my project.
do you have any idea what can I do?

Related

Symfony - One time message / upcoming maintenance

Just wondering what your thoughts are on the best way to achieve this?
My problem is I want to be able to add new update messages to the top of the website. Eg upcoming maintenance shedules, promoting new features etc. These will be on a random basis whenever I have new information to promote.
I want the message to stay on every page request until the user clicks the dismiss button and then never have it shown again.
My current thinking is either:
Store the messages in a database and then store in cache when user dismisses it so it won't show again. This seems like a waste of a database call though on every page request.
Store in an xml file and load on every request and then store a cookie if user has dismissed that message.
Is there a better way to achieve this or something built into Symfony that can handle this?
Thank you

Is it possible to fetch my company updates feed without login

I'm trying to find a way to retrieve my company updates feed. The question is, is it possible without user login/ interaction?
When searching the docs I found https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/share-api to retrieve this information. But if I'm correct, you can't do this without first logging in (r_organization_social requires 3-legged).
Is there another endpoint that could do this with only a key/secret? Or is the only way for this to work, login and make a cronjob that automatically refreshes the token. With the downside that I need to login again if the cronjob fails.
Some other relevant info, when trying to generate an application token I get the following error "This application is not allowed to create application tokens". But I think this is normal because a 2-legged OAuth is not available for Marketing APIs.
to summarize:
I want company updates feed without user interaction
Maybe using the wrong endpoint
Maybe something wrong with the app creation
Maybe something wrong with generating Application key
Credential docs used: https://learn.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow

How detect form submission within Jira Issue Collector?

I have integrated jira issue collector into my Angular application. I need a way to detect when a user submit the feedback so I can send a notification to my team and user regarding the newly created ticket, however since the issue collector is loading inside an iframe I am not able to detect the form submission.
Is there any way to detect from submission inside a cross-origin iframe?
You can use the notification settings of Jira to notify your team when the ticket is created. This is most likely the best way to handle it.
While it might be possible to get the info inside your angular app, this would be pretty messy and hard to maintain.

Firebase: action after read child

I'm working on project that sell unique soft products like serials or tickets. To be fast and reliable, we going to use Firebase Real-time Database.
The problem is I want to remove or update the sold ticket after the user get it.
One way to do so is using another server to do so manage the tickets and update the Firebase Database using REST API, but I want to do it with the Firebase only.
Another way to do it, after the user get a ticket, the client side app will sent a remove request. But I'm afraid of losing the data in the middle of this process. A user got a ticket but never removed from the database. As I said the ticket is unique.
How to do it with Firebase side only?

asp.net + private message system notification

I am trying to build a private message inbox system in my asp.net app, using SQL Server to store the messages between users but one thing I am not sure how to achieve is this, for e.g facebook immediately notifies a user when he/she recieves a new message or notification through the action of another user as a red icon on its top navigation bar. I have read through some of the tutorials and guides and most of them requires some sort of polling to the database every few seconds. Can anyone shed some light on what is a good way to go about this?
Thanks.
I have used SignalR to do something similar to this in the past. It can be installed via NuGet by Install-Package SignalR
Scott Hanselman has a great write up: http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx
Also, jabbr.net is a fully functional example of what, I think, is pretty close to what you want to do.

Resources