Closed Bmgpt closed 5 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
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.
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"]
withself.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.
No further description of issue
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.