Skip to main content
OpenBunny connects to Telegram using GramJS, which uses the MTProto protocol to connect with your personal Telegram account.

Prerequisites

Setup

1
Get API credentials
2
  • Go to my.telegram.org and sign in
  • Go to API development tools
  • Create a new application
  • Copy the API ID and API hash
  • 3
    Configure environment
    4
    TELEGRAM_API_ID=12345678
    TELEGRAM_API_HASH=your-api-hash
    
    5
    Authenticate
    6
    Run the setup wizard and select Telegram. You’ll be prompted to enter a verification code sent to your Telegram app.
    7
    npm run setup
    

    How it works

    The service uses GramJS to maintain a persistent connection to Telegram’s MTProto servers. Messages from personal chats and groups are received in real time and processed through the standard pipeline. Session credentials are stored locally and persist across restarts.