Pinned Repositories
sainitxt-2-video
Telegram-To-Youtube-Uploader-Bot
TXT--LEECH2
video-convert-bot
Skip to content vasusen-code / VIDEOconvertor Public Code Issues Pull requests Projects Wiki Security Insights VIDEOconvertor/main/Database/database.py @vasusen-code vasusen-code Update database.py 1 contributor 60 lines (42 sloc) 1.82 KB #Tg:ChauhanMahesh/DroneBots #Github.com/vasusen-code import datetime import motor.motor_asyncio from .. import MONGODB_URI SESSION_NAME = 'videoconvertor' class Database: #Connection-------------------------------------------------------------------- def __init__(self, MONGODB_URI, SESSION_NAME): self._client = motor.motor_asyncio.AsyncIOMotorClient(MONGODB_URI) self.db = self._client[SESSION_NAME] self.col = self.db.users #collection handling--------------------------------------------------------- def new_user(self, id): return dict(id=id, banned=False, link=None) async def add_user(self,id): user = self.new_user(id) await self.col.insert_one(user) async def is_user_exist(self, id): user = await self.col.find_one({'id':int(id)}) return True if user else False async def total_users_count(self): count = await self.col.count_documents({}) return count async def banning(self, id): await self.col.update_one({'id': id}, {'$set': {'banned': True}}) async def is_banned(self, id): user = await self.col.find_one({'id': int(id)}) banned = user.get('banned', False) return banned async def unbanning(self, id): await self.col.update_one({'id': id}, {'$set': {'banned': False}}) async def get_users(self): users = self.col.find({}) return users async def update_thumb_link(self, id, link): await self.col.update_one({'id': id}, {'$set': {'link': link}}) async def rem_thumb_link(self, id): await self.col.update_one({'id': id}, {'$set': {'link': None}}) async def get_thumb(self, id): user = await self.col.find_one({'id':int(id)}) return user.get('link', None)
all-in-work-try-1
Auto-Filter
BetterTGStreamer
Transform video files into seamless M3U8 streams with Better TG Streamer! Supports multiple hosts, unlimited uploads, and features a robust bot, streaming API, and database integration.
BishnoiTXT3
bsdkwale
Bulk-Text-uploader
Bulk url uploader telegram bot
Rajmaterbot's Repositories
Rajmaterbot/Suhail-Md
meet Suhail-Md, Your All-in-One WhatsApp Excitement Buddy! Enjoy a thrilling messaging experience like never before. Suhail-Md brings a world of excitement and joy to your chats ✨🤖
Rajmaterbot/VJ-Token-Verification
Rajmaterbot/sainiCourse-extract-learning
Rajmaterbot/SaveRestrictedContentBot
Stable telegram bot to save Restricted content with custom thumbnail support.
Rajmaterbot/sTxtLeechBot
Rajmaterbot/rajsaini
Config files for my GitHub profile.
Rajmaterbot/Musicbot
Rajmaterbot/VJ-Auto-Forward-Bot
Rajmaterbot/Save-Restricted-Content-Bot-Repo
A stable telegram bot to get restricted messages with custom thumbnail support , made by TEAM SPY This bot can run in channels directly (in this case custom thumbnail not supported)
Rajmaterbot/TGDrive
A Google Drive website clone, Uses telegram for storage
Rajmaterbot/Save-Restricted-Bot-With-User-Login-System
Rajmaterbot/Txt-Leech1
Rajmaterbot/Save_restricted_bot
Heu
Rajmaterbot/dfdsfsavcc
Rajmaterbot/text-leech-bot
Text-leech-bot -telegram @SudoR2spr
Rajmaterbot/bsdkwale
Rajmaterbot/txtMaster
Rajmaterbot/Txt_Uploder
Rajmaterbot/idpasstotxtcw11
Rajmaterbot/Pay-txt-uploder
Rajmaterbot/Itachi
Rajmaterbot/Bulk-Text-uploader
Bulk url uploader telegram bot
Rajmaterbot/SlayerX
Telegram Group Calls Streaming bot with some useful features, written in Python with Pyrogram and Py-Tgcalls. Supporting platforms like Youtube, Spotify, AppleMusic, Soundcloud and M3u8 Links.
Rajmaterbot/chuch
Rajmaterbot/KGS
Rajmaterbot/New-Real-TXT-leech-
Rajmaterbot/all-in-work-try-1
Rajmaterbot/utkarsh
Rajmaterbot/BetterTGStreamer
Transform video files into seamless M3U8 streams with Better TG Streamer! Supports multiple hosts, unlimited uploads, and features a robust bot, streaming API, and database integration.
Rajmaterbot/YT-Sub-Extractor
A Telegram bot that can extract Youtube subtitle and send it to you as a text file. Heroku deployable