async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title=self.title if self.title else os.path.basename(self.file), description= 'Uploaded to youtube with https://t.me/youtubeitbot', category=27, privacyStatus='private') youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video=self.file, properties=properties, progress=self._callback) self.status = True self.message = f"https://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"Error occuered during upload.\nError details: {e}" return
async def _save_auth_data(c, m): auth_data = m.reply_to_message.text try: with open(Config.CRED_FILE, 'w') as f: f.write(auth_data) auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) auth.LoadCredentialsFile(Config.CRED_FILE) auth.authorize() await m.reply_text(tr.AUTH_DATA_SAVE_SUCCESS, True) except Exception as e: traceback.print_exc() await m.reply_text(tr.AUTH_FAILED_MSG.format(e), True)
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "📤Meni tasdiqlamaganingiz uchun yuklash amalga oshmadi.✔" return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title = self.title if self.title else os.path.basename(self.file), description = "🙋Assalomu alaykum Qadirli Kanal Azolari Szilar bilan Kamina Jahongir bo'lmoqda. 📅Bugungi Video ham Jida qoziq siz aslo Zerikmaysiz Bizni Kanalimzni kuzatishda Davom Eting. 😊 Bu yerda siz o'zingizga kerakli narslarni Topasiz.", category = 27, privacyStatus = 'private' ) youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video = self.file, properties = properties) self.status = True self.message = f"💿Sizning videongiz muvaffaqiyatli yuklandi \nYouTube havolasi:👇\nhttps://youtu.be/{r['id']}\n💽Agar Video hajmi Agar Katta bolsa Video Shuncha Sekin Yuklanadi." except Exception as e: traceback.print_exc() self.status = False self.message = f"🚫Yuklash jarayonida xatolik yuz berdi. \nXatolik tafsilotlari: {e}" return
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "Upload failed because you did not authenticate me." return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title = self.title if self.title else os.path.basename(self.file), description = 'ToonMedia is a YouTube platform which posts many and so many cartoons for you. It posts nearly every video within a hour. Thanks for Watching. Please Subscribe our Channel for more cartoons.', category = 27, privacyStatus = 'private' ) youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video = self.file, properties = properties) self.status = True self.message = f"https://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"Error occuered during upload.\nError details: {e}" return
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "Upload failed because you did not authenticate me." return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title=self.title if self.title else os.path.basename(self.file), description= 'ezelpart54,ezelpart55,ezelpart56,ezelpart57,ezelpart58,ezelpart59ezelpart60,ezelpart61,ezelpart62,ezelpart63,ezeldramapart45,ezeldramapart48,ezeldrama,newpartezeldrama,newpartezel,ezeldramaamharic,kanatv,kanatelevisionezel,ezel,ezeldramapart45,ezelkanatvdrama,ezelkanatv,ezelturkishdrama,ezelturkishseries,ezelfilm,ezelpart44kanatv,ezelpart50,ezelpart44,KanaTV,firdegnochu,ferdegnochu,endeenat,buzutube,yalalekefikir,ezal,ezele,ኢዘልክፋል45,ኢዘልክፋል46,ኢዘልክፋል,47,ኢዘልክፋል48,ኢዘልክፋል49,ኢዘልክፋል50,,ezelpart55,ezelamharic,ezelamharicpart66ezelamharicpart67,ezelamharicpart58,ezelamharicpart63,ezelamharicpart61,ezelamharicpart62,ezelamharicpart64,ezelamharicpart65,ezelamharicpart57,ezelamharicpart63,ezelamharicpart60,ezelamharicpart59,ezelamharicpart65,ፍርደኞቹምእራፍ2ክፍል100ፍርደኞቹምእራፍ2ክፍል101,ፍርደኞቹምእራፍ2ክፍል10,ፍርደኞቹምእራፍ2ክፍል99,ፍርደኞቹምእራፍ2ክፍል103,ፍርደኞቹምእራፍ2ክፍል104,ፍርደኞቹምእራፍ2ክፍል105,feredenochupart97,feredenochupart98,feredenochupart99,feredenochupart100,feredenochupart101,ፍርደኞቹምእራፍ2ክፍል93,ፍርደኞቹምእራፍ2ክፍል92,ፍርደኞቹምእራፍ2ክፍል91,ፍርደኞቹምእራፍ2ክፍል94,feredenochupart85,feredenochupart86,feredenochupart87,feredenochupart88,feredenochupart89,feredenochupart90,feredenochupart91,ፍርደኞቹpart93,feredenochu,feredenochu90,,feredenochuseason2part97–kanatvamharicdrama,feredenochukanatv,feredenochupart89–kanatvamharicdrama,feredenochuseason2part95,feredenochuseason2part94,feredenochuseason2part93,feredenochuseason2part92,feredenochuseason2part91,feredenochuseason2,feredenochuseason2part90–kanatvamharicdrama,feredenochuseason2part96,feredenochupart2–kanatv,feredenochukanatvpart101,feredenochukanatvpart102,feredenochukanatvpart100,feredenochukanatvpart99,feredenochukanatvpart103,feredenochukanatvpart104,feredenochukanatvpart98,feredenochukanatvpart105,feredenochukanatvpart106,feredenochukanatvpart97,feredenochukanatvpart99,feredenochukanatvpart100,feredenochukanatvpart101,feredenochukanatvpart102,feredenochukanatvpart103,feredenochukanatvpart104,feredenochukanatvpart105,feredenochukanatvpart106,feredenochukanatvpart107,feredenochukanatvpart108,feredenochu,kanatvpart109,feredenochukanatvpart110,feredenochukanatvpart111,feredenochukanatvpart91,kanatv,feredenochuseason2,feredenochupart2', category=27, privacyStatus='public') youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video=self.file, properties=properties) self.status = True self.message = f"https://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"Error occuered during upload.\nError details: {e}" return
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "Upload failed because you did not authenticate me." return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title=self.title if self.title else os.path.basename(self.file), description= 'تم تحميل الفديو بواسطة بوت الرفع لليوتيوب من تطوير الجيش الاكتروني لأنصار الله بواسطة المطور فتى غولة عجيب ', category=27, privacyStatus='public') youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video=self.file, properties=properties) self.status = True self.message = f"https://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"Error occuered during upload.\nError details: {e}" return
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "Upload failed because you did not authenticate me! Please Authenticate Then Try Again XD !." return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title=self.title if self.title else os.path.basename(self.file), description= 'Uploaded to youtube with https://t.me/YtUploaders_Robot', category=27, privacyStatus='private') youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video=self.file, properties=properties) self.status = True self.message = f"https://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"Error occuered during upload! Ъци If It Continue To Happen Get Help From @YtUploaderRobotSupportChat.\nError details: {e}" return
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "Upload failed because you did not authenticate me." return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title=self.title if self.title else os.path.basename(self.file), description='THANX FOR WATCHING SUBSCRIBE OUR CHANNEL', category=27, privacyStatus='private') youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video=self.file, properties=properties) self.status = True self.message = f"https://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"Error occuered during upload.\nError details: {e}" return
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "📤Meni tasdiqlamaganingiz uchun yuklash amalga oshmadi.✔" return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title=self.title if self.title else os.path.basename(self.file), description='Uploaded to youtube with https://t.me/YTUpBot', category=27, privacyStatus='public') youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video=self.file, properties=properties) self.status = True self.message = f"💿Sizning videongiz muvaffaqiyatli yuklandi \nYouTube havolasi:👇\nhttps://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"🚫Yuklash jarayonida xatolik yuz berdi. \nXatolik tafsilotlari: {e}" return
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "Upload failed because you did not authenticate me." return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title = self.title if self.title else os.path.basename(self.file), tags[] = 'Entertainment,Kana TV,ያላለቀ ፍቅር፣,yalaleke fikir,amharic drama,kana drama,amharic movie,ferdegnochu,ethiopian movie,ende enat,yalaleke fikir recent,yalaleke fikir romantic,kana tv yalaleke fikir recent,yalaleke fikir saturday,yalaleke fikir season 2,kana tv yalaleke fikir saturday,kana tv yalaleke fikir full screen,yalaleke fikir today,yalaleke fikir today part,yalaleke fikir the last part,yalaleke fikir turkish,yalaleke fikir this week,yalaleke fikir tonight,yalaleke fikir turkey,yalaleke fikir today kana tv,kana tv yalaleke fikir this week,yalaleke fikir yesterday,yalaleke fikir yesterday part,yalaleke fikir youtube,yalaleke fikir kefel 1,yalaleke fikir part 1 fullscreen,yalaleke fikir part 1 kanal tv' , description = 'Kana-TV-|-Kana-drama-|-Kana-Abel-BirhanuTelevision-|-EBS-TV-WorldWide-|-JTV-Ethiopia-|-LTV-Ethiopia-|-ENN-Television|-New-Ethiopian-music-|-New-Ethiopian-Movie-|-Hope-Music-Ethiopia-|-GurshaTube-|-Entewawekalen-Wey-|-Zemen-Drama-|-Dana-drama-|-Welafen-drama-|Yesuf-App-Betoch-Comedy-|-Minew-Shewa-Tube-|-Sodere-TV-|-Arada-movies1|-EthioAddis-|-Official-Teddy-Afro-|-ESAT-TV-|-Ethiopia-|-Addis-Neger-|EthioTimes-|-AddisInfo-|-AddisOut-|-AddisTimes-|-CNN-|-BBC-|-Ethiopia-|Senselet-drama-|-Helen-bedilu-tube-|-New-Amharic-Drama-|-VOAAmharicDWAmharic|-Tenaadam-|-EthioTimes-|-EthioNow-|-Zehabesha-|-Hiber-Radio-|BBN-Radio-|-Admas-Radio-|-Yoni-Magna-|-Dire-Tube-|-Mogachoch,EthioTube-|-Dana-Drama-|-Derso-Mels-Drama-|-Ayer-Bayer-Drama-|-Amen-Drama-|-Meleket-Drama-|-Habesha-Movies-|-Habesha-Comedy-|-Arada-Cinema-|-Guragegna-Music-|-Oromigna-Music-|-Tigrigna-Music-|---AmharicMusic-|-Ethiopian-Music-|-DireTube|MinLitazez|Ethiopian-Comedy|Ethiopian-Drama|Ethiopian-Movies-|-Ethiopian-Music-Fana-Television-|-Nahoo-TV-|-Kana-TV-Kana-drama-|-EBS-TV-WorldWide-|JTV-Ethiopia-|-LTV-Ethiopia-|-ENN-Television-|New-Ethiopian-music-|-New-Ethiopian-Movie-|-Hope-Music-Ethiopia-|-Gursha-Tube-|-Entewawekalen-Wey-|-Zemen-Drama-|-Dana-drama-|-Welafen-drama-|-Betoch-Comedy-|-MinewShewa-Tube-|-Sodere-TV-|-Arada-movies1-|-EthioAddis-|-Official-Teddy-Afro-|ESAT-TV-|-Ethiopia-|-Addis-Neger-|-EthioTimes-|-JTV-Min-Addis-|-AddisOut-|AddisTimes-|-CNN-|-BBC-|-Ethiopia-|-Senselet-drama-|-Helen-bedilu-tube-|-NewAmharic-Drama-|-VOA-Amharic-|-DW-Amharic-|-Tenaadam-|-EthioTimes-EthioNow-|-Zehabesha-|-Hiber-Radio-|-BBN-Radio-|-Admas-Radio-|-YoniMagna,-Dire-Tube-|-Mogachoch,EthioTube-|-Dana-Drama-|-Derso-Mels-Drama|-Ayer-Bayer-Drama-|-Amen-Drama-|-Meleket-Drama-|-Habesha-Movies-|Habesha-Comedy-|-Arada-Cinema-|-Guragegna-Music-|-Oromigna-Music-|Tigrigna-Music-|-Amharic-Music-|-Ethiopian-Music|DireTube|MinLitazez|Ethiopian-Comedy|Jossy-In-The-House-Show-Yesuf-app-siraj-tech-yalaleke-fikr-ቃና-ቲቪ-Kana-|-Yegna-Sefer-የኛ-ሰፈር-|-yalaleke-fikir-ያላለቀ-ፍቅር-88-91-|-Tukir-Fikir-|-Ende-enat-እንደ-እናት-hd', category = 27, privacyStatus = 'public' ) youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video = self.file, properties = properties) self.status = True self.message = f"https://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"Error occuered during upload.\nError details: {e}" return
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "Upload failed because you did not authenticate me." return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title = self.title if self.title else os.path.basename(self.file), description = 'സംസ്ഥാനത്തെ സ്കൂൾ കുട്ടികൾക്ക് സാങ്കേതിക സൗകര്യങ്ങൾ പ്രയോജനപ്പെടുത്തിക്കൊണ്ടു ചാനല് തയ്യാറാക്കിയ വീട്ടിലൊരു ക്ലാസ് മുറി (First Bell-ഫസ്റ്റ് ബെല്)', category = 27, privacyStatus = 'private' ) youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video = self.file, properties = properties) self.status = True self.message = f"https://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"Error occuered during upload.\nError details: {e}" return
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "فشل الرفع بسبب عدم توثيق البوت بالقناه اليوتيوب الخاصه بك." return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title = self.title if self.title else os.path.basename(self.file), description = 'تم رفع الفديو بواسطة بوت قناة زوامل انصار الله , category = 27, privacyStatus = 'public' ) youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video = self.file, properties = properties) self.status = True self.message = f"رابط الفديو على اليوتيوب هنا\n\n https://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"خطأ أثناء الرفع.\تفاصيل الخطأ: {e}" return
async def _upload(self): try: auth = GoogleAuth(Config.CLIENT_ID, Config.CLIENT_SECRET) if not os.path.isfile(Config.CRED_FILE): self.status = False self.message = "Kimlik doğrulaması yapmadığınız için yükleme başarısız oldu." return auth.LoadCredentialsFile(Config.CRED_FILE) google = auth.authorize() properties = dict( title = self.title if self.title else os.path.basename(self.file), description = 'İle youtube a yüklendi https://tx.me/YoutubeMp3Videobot', category = 27, privacyStatus = 'özel' ) youtube = Youtube(google) self.start_time = time.time() self.last_time = self.start_time r = await youtube.upload_video(video = self.file, properties = properties) self.status = True self.message = f"https://youtu.be/{r['id']}" except Exception as e: traceback.print_exc() self.status = False self.message = f"Yükleme sırasında hata oluştu.\nHata Detayları: {e}" return