winniesi / tg-gemini-bot

Just a single click and you've got it set up on Vercel.
https://tg-gemini-bot.vercel.app
MIT License
83 stars 38 forks source link

My gemini bot didnt respond #1

Closed Bmgpt closed 5 months ago

Bmgpt commented 6 months ago

Hi, I have followed all of the steps on Vercel including enter all the required variables. But why my bot still didnt respond anything once I enter /start. Please help.

fogflea commented 6 months ago

First clone the library to the local computer, and modify the 31 lines of tg-gemini-bot/api/telegarm.py Replace self.user_name = update["message"]["from"]["username"] with self.user_name = update.get("message", {}).get("from", {}).get("username") Then resubmit

winniesi commented 6 months ago

Hi, I have followed all of the steps on Vercel including enter all the required variables. But why my bot still didnt respond anything once I enter /start. Please help.

Have you followed the process 4. Fill in your telegram bot token on the page to link telegram bot and vercel. to set up the association between your telegram bot and vercel server?

Or open your vercel, check the project, open the log and copy the error message here please.

winniesi commented 6 months ago

First clone the library to the local computer, and modify the 31 lines of tg-gemini-bot/api/telegarm.py Replace self.user_name = update["message"]["from"]["username"] with self.user_name = update.get("message", {}).get("from", {}).get("username") Then resubmit

I don't think that's why. I wrote it this way so if an update doesn't fit the right format, it'll quickly toss up an error. If the update's formatted like we expect, then both your code and mine should work just fine.

winniesi commented 5 months ago

No further description of issue