Pinned Repositories
Advance-premium
all-in-work-try-1
AM-ROBOTS
About
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
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)
Rajmaterbot's Repositories
Rajmaterbot/sainitxt-2-video
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/BishnoiTXT3
Rajmaterbot/Course-extract-learning
Rajmaterbot/Courses-repo
Rajmaterbot/Cw-Extractor
Rajmaterbot/Cw-repo
Rajmaterbot/Extractor-
Rajmaterbot/HtmlDownloder
Rajmaterbot/ID-Pass-to-Txt-Extractor
Rajmaterbot/New-txt-bot
Rajmaterbot/New-Txt-extract-random-
Rajmaterbot/New_Txt_Random
Rajmaterbot/NewExtractor
Rajmaterbot/Nisha-txt-extract-
Rajmaterbot/rasi-extract-
Rajmaterbot/Rishav-TXT-extractor-
Rajmaterbot/sainiAll-in-one
Rajmaterbot/sainitxtExtractor
Rajmaterbot/sainitxtto-video-
Rajmaterbot/Save-Restricted-Content-Bot-with-Login
Save Restricted Content Bot Repo with Login by Team SPY
Rajmaterbot/SaveRestrictedContent6Bot
Telegram bot to save Restricted Content
Rajmaterbot/TxT-DL-Bot
Telegram Bot to Bulk Downloading list of yt-dlp & Aio supported urls and Upload to Telegram.
Rajmaterbot/Txt-leech
Rajmaterbot/txt-to-vdo
Rajmaterbot/TXT-whithoutlog
Rajmaterbot/txt_leech
Rajmaterbot/txtuploader2
Rajmaterbot/Txtx
Rajmaterbot/YT-Sub-Extractor
A Telegram bot that can extract Youtube subtitle and send it to you as a text file. Heroku deployable