Parallelix
DemoGitRoadmapAbout Us
  • Get Started
    • Welcome to Parallelix
    • Installation and Usage
    • Develop your modules
  • Roadmap
  • API Reference
    • General Client
    • VK Bridge (Mini Apps)
    • Telegram Mini Apps
    • PWA and Web Applications
    • WeChat
    • Direct Games
    • Yandex Games
  • Android and iOS (Apache Cordova)
  • Windows, Mac, Linux (Electron)
  • About
    • Product Page
    • GitHub
    • Our Website
Powered by GitBook
On this page
  • What is Telegram Mini Apps (Web Apps)
  • Telegram Mini Apps Platform Module (ParallelixTelegram)
  • Platform Specific configuration
  • API Reference
  • Call directly methods from Telegram SDK
  1. API Reference

Telegram Mini Apps

Description of SDK methods allowing to work with Telegram Mini Apps through interaction with Parallelix unified interface

PreviousVK Bridge (Mini Apps)NextPWA and Web Applications

Last updated 2 months ago

What is Telegram Mini Apps (Web Apps)

Telegram mini apps are web-based applications that run directly within the Telegram messaging app. They offer a more immersive and interactive experience than standard web links or bots, and they can be used to create a wide range of experiences, from e-commerce and games to productivity tools and more.


Telegram Mini Apps Platform Module (ParallelixTelegram)

Module Name: "telegram"

PlatformSpecificParameters

Below we have described each method available for calling, its parameters with a reference to the official documentation and the name of the official method.


Platform Specific configuration

No specific configuration provided for this platform

API Reference

Most Telegram methods don't have Callback functions to check the state of the action, so an empty object will be sent as data in onSuccess.

Method
Official Method / Description

GetLaunchParams

initDataUnsafe field

HandleEvents

onEvent

GetClientInfo

Returns object with:

platform

version

fields from invoker

ToggleFullscreen

requestFullscreen

AddToHomeScreen

addToHomeScreen

OpenPaymentForm

openInvoice

PublishStory

shareToStory

OpenLink

openLink

GetStorage

SetStorage

CloseApplication

close

ShowQRReader

showScanQrPopup

RequestUserPhone

requestContact

GetUserInfo

Calls GetLaunchParams and return object from initDataUnsafe.user

RequestLocation

LocationManager.getLocation

GoBack

Go back to previous page (window.history.back())


Call directly methods from Telegram SDK

To query methods directly, using the same syntax as in the official documentation, use the following approach:

// Parallelix Direct Calls
client.Platform.Invoker.[YOUR_METHOD]

// Equivalient of
window.Telegram.WebApp.[FIELD_OR_METHOD]

.

Any of our modules inherits from - a virtual class describing a unified SDK structure. Below we have described the peculiarities of working with the module, as well as the differences and description of API parameters for the current module.

These are parameters that are passed inside some module methods. When working with them, you need to create subobjects as . Inside this subobject are the parameters described in the documentation of a particular platform.

All methods called by Invoker, described as (window.Telegram.WebApp) in .

View in

View in

You can learn more here
official documentation
PWA class
PWA class
ParallelixWrapper
described in the documentation on working with such parameters