mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-18 15:14:18 +02:00
Commited backup
This commit is contained in:
53
thomasmod/hikkamods/ctiktok.py
Normal file
53
thomasmod/hikkamods/ctiktok.py
Normal file
@@ -0,0 +1,53 @@
|
||||
__version__ = (1, 1, 0)
|
||||
|
||||
# ▀█▀ █ █ █▀█ █▀▄▀█ ▄▀█ █▀
|
||||
# █ █▀█ █▄█ █ ▀ █ █▀█ ▄█
|
||||
# https://t.me/netuzb
|
||||
#
|
||||
# 🔒 Licensed under the GNU AGPLv3
|
||||
# 🌐 https://www.gnu.org/licenses/agpl-3.0.html
|
||||
|
||||
# meta desc: Browse movies by genre and watch them online via bot
|
||||
# meta pic: https://te.legra.ph/file/0f3118686c0f6f371d58b.png
|
||||
# meta banner: https://te.legra.ph/file/d53309369305946062a89.jpg
|
||||
# meta developer: @wilsonmods
|
||||
# tikdobot developer: @lowdev
|
||||
# scope: hikka_only
|
||||
# scope: hikka_min 1.3.0
|
||||
|
||||
from .. import loader, utils
|
||||
from asyncio import sleep
|
||||
|
||||
class TikDownBotMod(loader.Module):
|
||||
"""Upload video via TikTok link «Optimized»"""
|
||||
|
||||
strings = {
|
||||
"name": "💾 TikTok",
|
||||
"wilson_pls_wait": "🕒 <b>Please, wait...</b>",
|
||||
"wilson_pls_enter_a_link": "🚨 <b>Please provide a link for the TikTok video</b>",
|
||||
"wilson_done": "✅ <b>Done!</b>",
|
||||
}
|
||||
|
||||
strings_ru = {
|
||||
"wilson_pls_wait": "🕒 <b>Пожалуйста подождите...</b>",
|
||||
"wilson_pls_enter_a_link": "🚨 <b>Пожалуйста, дайте ссылку на видео TikTok</b>",
|
||||
"wilson_done": "✅ <b>Готов!",
|
||||
}
|
||||
|
||||
strings_uz = {
|
||||
"wilson_pls_wait": "🕒 <b>Iltimoas, kuting...</b>",
|
||||
"wilson_pls_enter_a_link": "🚨 <b>Iltimoas, TikTok uchun havolani ko'rsating</b>",
|
||||
"wilson_done": "✅ <b>Tayyor!",
|
||||
}
|
||||
|
||||
async def tdcmd(self, message):
|
||||
"""> [Link] just enter the link for the video"""
|
||||
reply = await message.get_reply_message()
|
||||
await utils.answer(message, self.strings("wilson_pls_wait", message))
|
||||
args = utils.get_args_raw(message)
|
||||
if not args:
|
||||
await utils.answer(message, self.strings("wilson_pls_enter_a_link", message))
|
||||
return
|
||||
r = await message.client.inline_query('tikdobot', args)
|
||||
await message.client.send_file(message.to_id, r[1].result.content.url, caption=f"{self.strings('wilson_done')} | <code>{args}</code>", reply_to=reply.id if reply else None)
|
||||
await message.delete()
|
||||
Reference in New Issue
Block a user