DEV Community

Anton MegaPort
Anton MegaPort

Posted on

How to open a web page by URL directly in Telegram.

cover

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

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

pic 2

pic 3

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

pic 4

Next, go to the Enter page URL menu

pic 5

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

pic 6

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

pic 7

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

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

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

pic 10

Use the Page Up and Page Down buttons to scroll:

pic 11

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

pic 12

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

Then choose HTML page in Web App

pic 14

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

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

pic 16

The page will be loaded into the Web App:

pic 17

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.

Top comments (0)