Nandha Bot's Channel
1.47K subscribers
101 photos
50 videos
15 files
171 links
đŸ—Ŗī¸ Discussion Group - @NandhaSupport
đŸ“ĸ Network Channel - @NandhaNetwork
🛒 Market Shop - @NandhaMarket

✨ Owner: @Nandha

â„šī¸ GitHub Account:
https://github.com/nandhaxd

â„šī¸ GitHub Organization: https://github.com/Nandhabots
Download Telegram
Added programming language Compiler support to @GojoAssistantBot 👍 for test codes! @NandhaBots #gojoassistant
đŸĨ°1
Chatbot Updated for @GojoAssistantbot now it can support image/sticker response.. 🌟


Since the inline mode has been turn on so it must be difficult to type bot username so I've added one username to access chatbot @gojo


#Chatbot #GojoAssistant #update
Please open Telegram to view this post
VIEW IN TELEGRAM
đŸ”Ĩ3đŸ¤¯1
Nandha Bot's Channel via @GojoAssistantBot
Inline command for @GojoAssistantBot!
Made animation gif scrapper the AnimationSearch func which takes two parameters query and page_number for search animation from site if it's find it will give you well formatted dictionary data

{'title': 'cat', 'link': 'download link here', 'image': 'image link here'}

After you scape the data you can use link to get the download link of animation by GetAnimationSource Function thanks for the support. you use it with bot for testing use @GojoAssistantBot inline. 👍 By @NandhaBots

Source: https://gist.github.com/NandhaxD/36d8ad4494c9c70eae50b756dd378d85



#GojoAssistant #Scape
Please open Telegram to view this post
VIEW IN TELEGRAM
Chatbot module has been upgraded! Now it can hold a maximum of 15 chats. If you want more, consider donating 😊: /donate 👍


#GojoAssistant
import aiohttp


class Gemini:
def __init__(self, api_key: str):
self.api_key = api_key

async def ask(self, prompt: str, file: dict = {}) -> dict:
async with aiohttp.ClientSession() as session:
payload = {}
payload["contents"] = []
if file:
file_uri = file["file"]["uri"]
payload["contents"].append(
{
"role": "user",
"parts": [
{
"fileData": {
"fileUri": file_uri,
"mimeType": "image/jpeg"
}
},
{
"text": prompt
}
]
}
)
else:
payload["contents"].append(
{
"role": "user",
"parts": [
{
"text": prompt
}
]
}
)
payload["generationConfig"] = {
"temperature": 0.9,
"topK": 40,
"topP": 0.95,
"maxOutputTokens": 1024,
"responseMimeType": "text/plain"
}
async with session.post(f"https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-8b-exp-0924:generateContent?key={self.api_key}", headers={"Content-Type": "application/json"}, json=payload) as response:
try:
results = await response.json()
return results
except Exception as e:
return {"error": str(e)}

async def upload_image(self, path: str) -> dict:
with open(path, "rb") as file:
async with aiohttp.ClientSession() as session:
payload = {"file": file}
async with session.post(f"https://generativelanguage.googleapis.com/upload/v1beta/files?key={self.api_key}", data=payload) as response:
try:
return await response.json()
except Exception as e:
return {"error": str(e)}
os.remove(path)


âš”ī¸ Get your API key:
https://aistudio.google.com/app/apikey


👨‍đŸ’ģ For Example:
Use @GojoAssistantBot /gemini or /google cmd replaced old model with official api


#gojoai #gemini #gojoassistant

@NandhaBots
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
+ Added custom welcome message module for #gojoAssistant for more detailed info use /help welcome

Moreover if custom welcome haven't set the default welcome will come instead.
👍1
+ Added /stickers gojo:
(command for search sticker packs through telegram)
+ Added /htmltoimg convert html text to image

#gojoAssistant
đŸ”Ĩ4
This media is not supported in your browser
VIEW IN TELEGRAM
Okay we have added autofilter module for inline search, now you can share the files anywhere you wanted.

Supports Types for Specific fields without this it will search globally for types: #songs #apps #movies #anime

Example:
@GojoAssistantBot autofilter #music thank
@GojoAssistantBot autofilter #movie amaran
@GojoAssistantBot autofilter #anime anime mov
@GojoAssistantBot autofilter #app app

#gojoAssistant

Any bugs ?
Report: @NandhaSupport


@nandhabots
👍3❤1
â™Ļ Send All, Send Page buttons have been merged to autofilter & filters results. And 5 lakhs files indexed ✅
â™Ļ Google Search command fixed
✅
â™Ļ Added /copypasta, /owo, /shout fun commands
✅
â™Ļ Anime characters/anime search fixed
✅
â™Ļ AI chatbot bug/speed fixed
✅
â™Ļ File Renamer fixed
✅
â™Ļ Deep link upgraded
✅


Tags:
#gojoAssistant #tgbot #update

By
@NandhaBots
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4đŸ”Ĩ3🎉2
#NewProfileUpdated #GojoAssistant #changed

😉 Logo is edited by me, if you have your own preference please comment it.
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3