TGConnect - Sreyas-Sreelal/tgconnector GitHub Wiki

  • TGConnect

    • Parameters

      • const token[] - telegram bot token as string literal
    • Returns

      • if successfully connected - an integer with tag TGBot representing index of bot instance in plugin memory
      • if failed - INVALID_BOT_ID
    • Example

       new TGBot:bot = TGConnect("your_bot_token_here");