Pular para o conteúdo principal

Telegram and WhatsApp for the administrator

The work accounts that employees connect in TeleQube (see Telegram and WhatsApp accounts) are managed by the administrator in two rows of the Configurações do Qubix window: Work accounts for Telegram and WhatsApp for WhatsApp. People connect an account when the permission template gives them the right Connect Telegram or Connect WhatsApp.

Telegram: the application keys​

Telegram app keys are needed once for the whole installation. You need the keys once for the whole installation. After that, every employee connects their own work Telegram — by scanning the QR code on the screen with their phone.

  1. Sign in at my.telegram.org with your Telegram account — any will do, your personal one too.
  2. Open “API development tools” and fill in the form: App title — the name employees will see in Telegram, for example your company's name; Short name — 5 to 32 Latin letters or digits; Platform — Desktop.
  3. Click “Create application”, copy App api_id and App api_hash here and fill in below how the app introduces itself to Telegram.

Fill in the form right the first time and without a VPN: after a couple of failed attempts Telegram postpones app creation, sometimes until the next day. The link Every field in detail opens the sheet How to get the Telegram keys with every field of the form at my.telegram.org. The sheet begins: The app keys are Qubix's pass into Telegram. They are obtained once for the whole installation, and through them employees connect their work accounts in TeleQube: a QR code on the screen, a scan with the phone — and the chats are in Qubix. Employees themselves never need the keys.

Enter the keys in the group Telegram app keys:

  • api_id — digits only (up to ten);
  • api_hash — thirty-two characters 0–9 and a–f. A saved hash stays hidden: the field shows dots, and an empty field keeps the saved value.

Under them stands the group How the app introduces itself to Telegram. Every connection to Telegram goes with these: sign-in, the accounts' work, sign-out. They show in the device list of the connected accounts, next to the app's name. You fill them in yourself — while they are empty, Telegram does not connect. Fill in all four fields, each up to 64 characters:

  • Device model — What Telegram calls the device of the sign-in, for example “Office computer”. The app's name is not part of it: Telegram takes it from App title at my.telegram.org, and it can be changed only there.
  • System — a choice from Windows 11, Windows 10, macOS 15, macOS 14, Linux, Android 15 and iOS 18. Pick the system that matches Platform at my.telegram.org: for Desktop — Windows, macOS or Linux.
  • Version — Your app's version number, for example 1.0.
  • Idioma — The language the program tells Telegram.

Until a choice is made, the lists System and Idioma read Choose.

Press Salvar; it is active when the keys and all four fields are valid. While some of the fields are empty, the page says:

The fields above are not filled in yet: until they are, Telegram does not connect — neither new accounts nor connected ones.

The sheet with the steps​

The sheet How to get the Telegram keys opens by the link Every field in detail and by the button Ajuda in the title bar of the window. After its opening words it holds these steps, in this order:

  • Which account to sign in with — Any of yours, your personal one too. The keys work for any numbers, whichever account they were obtained with.

  • Step 1. Sign in to the Telegram site — Open my.telegram.org and sign in with your phone number. The code comes to the Telegram app, not by SMS.

  • Step 2. Open the apps section — Click “API development tools” — the “Create new application” form opens.

  • Step 3. Fill in the form — one line for each field of the form:

    • App title — at least 5 characters. Employees will see this name in Telegram on every connected account, so put one they understand, for example your company's name. You can change it later, at my.telegram.org too.
    • Short name — 5 to 32 Latin letters or digits, no spaces. It can be changed later as well.
    • URL — leave it empty.
    • Platform — Desktop.
    • Description — one sentence on what the app is for, for example Work chats. It cannot be changed later, but nobody except you sees it.

    Under the lines: Check the fields before you click: after a couple of failed attempts Telegram postpones app creation, sometimes until the next day.

  • Step 4. Bring the keys into Qubix — Click “Create application”. The page shows App api_id — a number — and App api_hash — 32 characters. Copy both into the fields of this section and click “Save”.

  • Step 5. How the app introduces itself — Below the keys are the device model, the system, the version and the language. Every connection to Telegram goes with them, and they show in the device list of the connected accounts. The system is handy to choose by Platform of the my.telegram.org form. The app's name does not come from here: Telegram takes it from App title at my.telegram.org. Without these fields Telegram does not connect.

  • If it did not work — three notes:

    • The site answered ERROR — change the Short name and click again. Still no luck — it is the network: Telegram does not create an app from a VPN or from an address in another country than the number's. Turn the VPN off or open the site in your phone's browser on mobile data, Wi-Fi off; just copy the keys you get there into these fields.
    • The site says Too many attempts — Telegram has postponed app creation, sometimes until the next day. The wait applies to the network you come from: another account from here gets the same answer. Wait a few hours and try once — every extra attempt extends the wait. Faster — from another network, for example your phone's mobile data.
    • One of the attempts may have gone through. Look at my.telegram.org/apps: if the app is already created, the keys are waiting there. Telegram gives one app per number.

The sheet ends with the line: Below the keys are the Telegram connection settings: how much history to bring in, which files to load at once and what happens to the chats of a disconnected account. WhatsApp has its own, in the next item.

WhatsApp: how the connection shows​

The button Ajuda in the title bar opens the sheet How to connect WhatsApp. It holds, in this order:

  • the opening words: WhatsApp needs no keys. Every employee connects their own work WhatsApp in TeleQube — the same way as WhatsApp on a computer.
  • Before the first connection — Set in this item how the connection shows in WhatsApp: the device's name and kind. It is done once for the whole installation; while the fields are empty, WhatsApp does not connect.
  • Step 1. Start connecting — In TeleQube open “Settings” → “Accounts” → “Add a Telegram or WhatsApp account” and choose WhatsApp.
  • Step 2. Link the phone — Choose WhatsApp — the QR code appears at once. On the phone open WhatsApp → Settings (on Android, the three dots) → Linked devices → Link a device and point the camera at the code.
  • Step 3. Keep the phone in use — WhatsApp disconnects linked devices when WhatsApp is not opened on the phone itself for 14 days.
  • the closing line: Below are the WhatsApp connection settings: how much history to bring in, which files to load at once and what happens to the chats of a disconnected account. Telegram has its own.

The group How the connection shows in WhatsApp sets how every connected account is labelled in the phone's list of linked devices.

This is how every connected account is labelled on the phone: WhatsApp → Settings → Linked devices. You fill it in yourself — while the fields are empty, no new WhatsApp connects. Accounts already connected keep working and keep their old label until they are connected again.
  • Device name — The label in the phone's list of linked devices, for example your company's name.
  • Device kind — Chrome, Firefox, Edge, Safari, Opera or Computer. It decides the icon next to the name.

Press Salvar. While the fields are empty: The fields above are not filled in yet: until they are, no new WhatsApp connects.

Limits for both networks​

The row of each network has the same groups; every number is checked against the range the page names.

Attachments and groups:

  • Auto-download files up to — in megabytes, with the unit MB beside the number;
  • Large group — more than — in members, with the word members beside the number: a group with more members is counted as large, and its conversation joins TeleQube only when the employee chooses it (see Big groups and channels).

Recent history on connecting — how many messages are loaded when an account is connected; every number has the word messages beside it. The rows are One-to-one chat, Group, Large group and Channel.

When an account is disconnected​

Disconnected account chats chooses what happens to the correspondence of an account that is disconnected: Kept leaves its conversations with the holder, Deleted removes every conversation of the account from Qubix. The choice is Kept by default and is kept for each network on its own row. While an account is being disconnected, its row says Disconnecting….

The accounts of the installation​

The group Accounts lists the connected accounts of the network. A row is titled with the network (Telegram or WhatsApp), the name and the number of the account, separated by a middle dot, and shows its state: Online, Connecting…, Disconnecting… or a trouble such as A conta saiu do Telegram; the mark pelo Tor where it applies. An empty group says No accounts connected yet; where the plan has a limit, the line Connected: … of … shows how many accounts are connected out of how many (the numbers stand in place of the dots).

  • Holder — the employee who holds the account. Choose another employee, and after the question Hand … to …? (the account and the employee stand in place of the dots) confirm with Transferir. A message the former holder wrote that was waiting to go out gets the mark Não enviado: a conta foi entregue a outro funcionário.
  • Desconectar — asks Disconnect …? (the account stands in place of the dots) and the line under the question repeats the choice for the chats: Disconnected account chats, Kept or Deleted.
  • Mensagens pelo proxy and Chamadas pelo proxy — the same switches as in the settings of the employee; shown for accounts that have a proxy; accounts that go through Tor are marked pelo Tor.

A record of an account that no longer opens is listed under its network by its record number with the note O registro está corrompido — exclua-o e adicione novamente. Its row has only Desconectar: after the same question it removes the record, and the chats follow the choice for the network. Such a record counts in Connected: … of …. The account's session stays among the devices on its phone — end it there.

What's next​