SkillAgentSearch skills...

Googleai

This Telegram bot uses the PaLM API, an advanced language model, to generate creative and coherent text based on user-provided prompts. Built using the aiogram library, the bot offers an interactive and engaging way to generate written content for various purposes, such as story ideas, creative writing, or even conversation starters.

Install / Use

/learn @bisnuray/Googleai
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PaLM Telegram Bot

This repository contains the source code for a simple Telegram bot that uses the PaLM API to generate text based on user-provided prompts. The bot is built using the aiogram ↗ library for asynchronous handling of the Telegram bot API.

Features

  • Accepts text prompts and generates text using the PaLM API.
  • Provides generated text as a response in Telegram.
  • Supports the /start command for welcoming users and the /bard command for generating text.

Requirements

Installation

  1. Clone the repository:

    git clone https://github.com/bisnuray/googleai/
    
    
  2. Change the current directory:

    cd googleai
    
  3. Install the required Python packages:

    pip install aiogram google-generativeai
    
  4. Replace the API_KEY and TG_BOT_TOKEN placeholders in the bot.py script with your PaLM API key and Telegram bot token, respectively.

  5. Run the bot.py script:

    python bot.py
    

Usage

  1. Start a conversation with your bot on Telegram.
  2. Send the /start command to receive a welcome message.
  3. Send the /bard command followed by a text prompt, e.g., /bard Once upon a time.
  4. The bot will generate text based on the prompt and send it back as a message.
View on GitHub
GitHub Stars9
CategoryContent
Updated6mo ago
Forks0

Languages

Python

Security Score

62/100

Audited on Sep 20, 2025

No findings