Is there any way to set up the Telegram bot on LAN? - telegram

I am very new to writing bots and relatively new to programming in general. I need to write a simple Telegram bot to compliment an event with weak mobile network. There will be a local wi-fi network without the access to internet though.
So, straight to the question: is there a way to host a server in the LAN network to serve the Telegram bot on it?

You can write/run a telegram bot in telegram itself.
You can't run the standard telegram in lan without the telegram server's.
Is it possible to host telegram on my own server?
So as long as the server itself is not open-source the entire Telegram eco-system cannot be considered open-source, even though there is an open API and official open-source clients.
There seem to be some unofficial telegram servers, but it's not clear how compatible they are with existing clients.
Check this for bots:
Bots: An introduction for developers
And you can only use specially encrypted telegram chats with the standard app for tablets, smartphones, etc..
For example, I use an unofficial Telegram on a debian but I can't see the encrypted chats I created with the official app on my smartphone.
Using a Local Bot API Server
Using a Local Bot API Server
The Bot API server source code is available at telegram-bot-api. You can run it locally and send the requests to your own server instead of https://api.telegram.org.
telegram-bot-api

Related

In Transit Encryption

I'm currently developing an application for a client and their requirement is that the application needs in transit and at rest encryption. I assured that it was and was required to provide documentation for that. I referenced this documentation from Google Cloud's website. They replied by asking if my claim stands in light of the following section
Using a connection directly to a VM using an external IP or network load balancer IP
If you are connecting via the VM's external IP, or via a network-load-balanced IP, the connection does not go through the GFE. This connection is not encrypted by default and its security is provided at the user's discretion
My mobile application uses Firebase SDK to talk to the Firebase database and Firebase functions. I have no background in networking nor do I understand what is exactly being referenced here despite Googling the concepts. Is my data still encrypted? Does the above section apply to my use case?
No, that applies only to VMs and network load balancers. Both Cloud Functions (so long as you're using https for all requests) and the Firebase Realtime database encrypt data in transit.

AWS SNS to notify a locally-running CLI application

AWS SNS can push to http, email, SMS, lambda, "device and mobile application".
Is there a way to get it to push to a locally-running CLI application?
I can imagine that maybe it is possible to register an EC2 server as a "device" and the CLI as the "mobile application". Couldn't figure out any docs about this.
Edit: or perhaps register an EC2 server as IoT and push sns to IoT device?
No. Sort of.
Amazon SNS needs to send a message to "somewhere" that wants to receive the message. So, you could run a web server that is Internet-accessible and SNS will send the message via HTTP to that endpoint.
Mobile applications also have endpoints provided by Apple/Google/Baidu that will then forward messages to a mobile device. So, they are also listening for a message.
Bottom line: You need something that is listening for a message.
You can use ngrok for this. This answer should solve your question perfectly.

Connect web browser with server for communication

I am working on a project , client server based live meeting.
I connected two systems in same network. The system is sending mail to each other but cannot join in chat at same time .
I don't know exactly how to configure and connect web browser with server so that it can communicate.
What will be the problem not allowing to chat and please suggest any method to overcome this fault.
In desperate need of help..
Database is connected
You could use SignalR as a possible solution. It allows real-time functionality on your web site.
Take a look here: IM using SignalR

make my secure server work with firebase cloud messaging (open ports on firewall)

I am Building an Andriod mobile application and I am deploying it on my client server. My client is a telecommunication company with a very secure server. Once We deployed the app, we found out the the firebase cloud messaging is not working. I am sure that the problem is with the client firewall. Could you please advice me how to solve this problem. Looking forward to here your comments and suggestions. Thanks
You need yo open poet 5228-5230. FCM documentation has this info,

Skype API Fetching Host information

I am developing an application in c# that requires the hostname or IP address of a specific Skype user, so that my server infrastructure can establish itself appropriately to the specific customer that one of my employees will be speaking to, over their Skype messaging sessions.
I have done some research over the internet to find these "Skype resolver" services, that can be used for malicious purposes, I assure you that this is not my intention, however, due to the fact that I do not support malicious activity, I would rather build my own method of fetching an IP address by utilising a Skype username, rather than support these malicious organization by using their tools.
So what do I need to do, in order to get these IP addresses from Skype usernames?

Resources