Telegram Integration

Telegram integration lets you collect messages from your Telegram chats and groups for Knowledge Base generation. This is particularly useful for teams that use Telegram for internal communication.

Connecting Your Telegram Account

  1. Go to Data Collection and select the Telegram tab.
  2. In the Account sub-tab, click 'Connect Telegram Account'.
  3. A dialog will appear asking for your phone number. Enter the phone number associated with your Telegram account.
  4. Telegram will send a verification code to your Telegram app (not SMS). Enter this code in the dialog.
  5. If you have two-factor authentication enabled, you will also need to enter your 2FA password.
  6. Once verified, your Telegram account will be connected.

KnowStack connects directly to your Telegram account (not via a bot). This means it can access all chats you can see. Be selective about which chats you choose to fetch.

Selecting Chats

  1. Switch to the 'Choose Chats' sub-tab.
  2. You will see a list of all your Telegram chats, including private chats, groups, supergroups, and channels.
  3. Check the boxes next to the chats you want to include. Use 'Choose All' or 'Deselect All' for bulk selection.
  4. Click 'Refresh' to sync the chat list if new chats have been added since you connected.

Fetching Messages

  1. Switch to the 'Fetch' sub-tab.
  2. Choose a date range for the messages you want to fetch.
  3. Click 'Start Fetch' to begin collecting messages from your selected chats.
  4. Fetching runs in the background. You will see progress updates.
  5. Once complete, switch to the 'Browse' sub-tab to view fetched messages.

Telegram messages are fetched incrementally. Each subsequent fetch only retrieves new messages since the last fetch, making it efficient to keep your data up to date.