How to open a web page by URL directly in Telegram.
Tags: html, url, telegram, screenshots
Published: 2024-04-07 00:56:42


![cover](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m3t89q8dsxr7liitooew.png)

There are several reasons why you might want to do this:
1. You need a screenshot of the page.
2. The page is blocked in your location.
3. You want to view the page anonymously.
4. You’re just wondering how it’s possible.
5. Your own version of why.

First you need to run the **bot MegaPort** https://megaport.biz . Next, go to the application “Web browser” by tapping on **/APP2**

![pic 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z7kid50tyxbjisyoknag.jpg)

If you go to the settings, you will see that the default mode is to view screenshots.

![pic 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0xm0bx73bqg8frlo3s27.jpg)

![pic 3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j4kbhqnawxl6eyb0kx56.jpg)

For now, let’s leave it unchanged and go to the **Web pages** menu.

![pic 4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/09o78w5hpytg82vf7gt5.jpg)

Next, go to the **Enter page URL** menu

![pic 5](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ertc6au0avj84yy6bh8.jpg)

Then, enter the desired page URL, such as this:

![pic 6](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1bo0un6bugaawcge8pd6.jpg)

After that, the bot will queue your request for processing and you will receive a corresponding notification:

![pic 7](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nn25iv5cv3lecijrrbbv.jpg)

If there are few requests in the queue - your request will be processed quickly, if not - you will have to wait for a while for the bot to process all the requests before yours. As soon as the bot fulfills your request, you will receive a notification:

![pic 8](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/thbubkf5owbzh6l8miuz.jpg)

After that, you need to go back to the **Web pages** menu
You’ll see the URL of the page in the header
and a new **Page view** menu item:

![pic 9](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0ck46f78i3xfq9thnrd3.jpg)

When you tap it, you will be able to view screenshots taken by the bot for this web page:

![pic 10](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ghxy2hh8hm1f3h36wojt.jpg)

Use the **Page Up** and **Page Down** buttons to scroll:

![pic 11](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w7p9mpsurwejsxt4zngz.jpg)

If you tap on the picture, you will be able to enlarge the picture for a detailed view.

![pic 12](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/leekfcsgk530z1jw4392.jpg)

You can also use the built-in Telegram browser to view the page. To do this, you need to go to the settings by taping on the **/SET1**

![pic 13](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2770r49ho54z7mepfh2p.jpg)

Then choose **HTML page in Web App**

![pic 14](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/poijarpfl5pgtsdprp1p.jpg)

After that, re-enter the URL and wait for the notification that the page has completed loading as described above. When you re-enter the **Web pages** menu, you will see a new menu view:

![pic 15](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ghni3cjwoyxk3zpqi4uv.jpg)

When you tap **Page view**, the bot will display a warning about connecting to the bot’s website, tap **Start**.

![pic 16](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tv92o80ajblr9eo4pzhp.jpg)

The page will be loaded into the Web App:

![pic 17](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wad5e5kuxmj6gb7yhdut.jpg)

In order to enter a new URL, close the Web App by clicking on the [**X**] in the upper left corner and repeat the steps for entering the URL described above.