Ai Image Generator Telegram Bot
Автор: Prasanth Choudary
Загружено: 4 апр. 2024 г.
Просмотров: 189 просмотров
Project: Ai Image Generating Telegram Bot using Aws Bedrock, S3, Lambda, API Gateway.
GitHub Link: https://github.com/prasanth2code/-Ai-Image...
Step 1: We create a telegram bot using BotFather.(https://t.me/BotFather)
Step 2: Create a IAM Role for lambda function.
AmazonBedrockFullAccess
AmazonS3FullAccess
AWSLambdaBasicExecutionRole
Step 3: Create a lambda function for our bot to handle user requests.
Step 4: Create S3 bucket to store the generated images.
Step 5: Write the code in lambda to use Bedrock service to generate images
for the user prompts and save them in S3 bucket. (The code will be given in description)
Edit timeout to 1 min in General Configurations
Step 6: Set BUCKET_NAME, TELEGRAM_BOT_TOKEN in lambda Environment Variables.
Step 7: Create HTTP API to invoke lambda function.
Step 8: Set up Webhook to transfer the user request from telegram to our HTTP API.
using Postman.
Step 9: Test the Bot
To Set up a Webhook connection:
https://api.telegram.org/bot6907104769:AAH...
THANK YOU FOR WATCHING THIS TUTORIAL. HOPE IT IS HELPFUL.

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: