A Telegram-based personal finance bot with AI-driven voice recognition and automatic bank transaction syncing, powered by Google Sheets and Gemini AI.
After evolving into a powerful Telegram finance assistant, MoneyNe Bot now offers:
- 🔊 Voice Recognition Send a voice message: AI transcribes and logs the transaction automatically—no typing required.
- 🏦 Auto Bank Sync Bot scans filter-configured emails and records banking transactions to your sheet in real time.
- ✔️ Expense & Income Management Track money flow, assign amounts to 6 customizable “jars,” and view overall balances.
- ✔️ History & Edits Browse, modify, or delete past transactions at any time.
- ✔️ Intuitive Mini App User-friendly interface embedded in Telegram—fast, responsive, and easy to navigate.
- ✔️ Google Sheets Backend Scalable storage on Google Sheets; supports up to 5,000+ users concurrently.
- A Telegram bot token (via BotFather)
- Google account with access to Google Sheets and Apps Script
- Gemini API keys
- Download File
Code.GS
-
In Google Sheets, create a new spreadsheet (e.g. MoneyNe-Data).
-
Add a sheet (tab) named UserList (exact match).
-
Copy the Spreadsheet ID from the URL.
-
Example URL:
https://docs.google.com/spreadsheets/d/1AbCdEfG12345/edit#gid=0
-
Here, ID_MAINSHEET =
1AbCdEfG12345
.
-
- Inside your Google Sheet, go to Extensions → Apps Script.
- Remove any sample code and paste in the MoneyNe Bot’s Google Apps Script.
- Save the project.
-
In the Apps Script editor, click Deploy → New deployment.
-
Select “Web app.”
-
Under “Who has access”, choose “Anyone” (even anonymous).
-
Click Deploy, then copy the Web App URL.
-
In your bot’s main code, replace:
var webAppUrl = "CHANGE_YOU_URL_APPSCRIP";
with the URL you just copied, e.g.:
var webAppUrl = "https://script.google.com/macros/s/ABC123/exec";
-
In the Apps Script editor, click the gear icon Settings → Script properties.
-
Add the following keys and their values:
Property Key Value BOT_TOKEN
Your Telegram bot token (from BotFather) GEMINI_LISTKEY
Comma-separated list of your Gemini API keys GEMINI_TOKEN
Your Gemini authentication token ID_MAINSHEET
The Spreadsheet ID you copied in step 2 -
Save your changes.
-
In the Apps Script editor, open Triggers (clock icon) and click Add Trigger.
-
Configure:
- Function:
checkEmail
- Deployment:
Head
(default) - Event source:
Time-driven
- Type of time-based trigger:
Hour timer
- Every:
1 hour
- Function:
-
Save the trigger. Now
checkEmail
will run automatically every hour.
- Invite your bot to a Telegram chat or channel.
- Send commands or voice messages as per the bot instructions.
- Data is stored in Google Sheets; logs are viewable in Apps Script Logs.