Skip to content

Generating greetings in Telegram from Google Calendar events using OpenAI API

Notifications You must be signed in to change notification settings

Satrier/google-calendar-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

google translate from image

image

  1. Install needed libraries and modules

    pip install asyncio datetime os random re time python-telegram-bot google-auth google-api-python-client openai python-dotenv

  2. Need to create a progect in https://console.cloud.google.com/apis/credentials?project=calendar-to-telegram and add ## Service Accounts and download .json file see: https://stackoverflow.com/questions/46287267/how-can-i-get-the-file-service-account-json-for-google-translate-api

  3. Create calendar in https://calendar.google.com/calendar/ and Share with user Service Accounts email / like telegram@calendar-to-tel-bot.iam.gserviceaccount.com image

  4. Add events in created calendar like image

  5. Create telegram bot - add him to channel / group or supergroup

  6. Register and create Key https://platform.openai.com/api-keys

  7. Add needed keys in script and run

About

Generating greetings in Telegram from Google Calendar events using OpenAI API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages