Download telebot/plugins/call.py from thenamk3/cc: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/spaces/thenamk3/cc/resolve/main/telebot/plugins/call.py
- Command line
-
hf download hf://spaces/thenamk3/cc/telebot/plugins/call.py
-
curl -L -o call.py https://huggingface.co/spaces/thenamk3/cc/resolve/main/telebot/plugins/call.py
1.94 kB
| """Emoji | |
| Available Commands: | |
| .emoji shrug | |
| .emoji apple | |
| .emoji :/ | |
| .emoji -_-""" | |
| import asyncio | |
| from telebot import CMD_HELP | |
| from telebot.utils import admin_cmd | |
| async def _(event): | |
| if event.fwd_from: | |
| return | |
| animation_interval = 3 | |
| animation_ttl = range(0, 18) | |
| input_str = event.pattern_match.group(1) | |
| if input_str == "call": | |
| await event.edit(input_str) | |
| animation_chars = [ | |
| "`Connecting To Telegram Headquarters...`", | |
| "`Call Connected.`", | |
| "`Telegram: Hello This is Telegram HQ. Who is this?`", | |
| "`Me: Yo this is` a TeleBot user ,`Please Connect me to my lil bro, Pavel Durov`", | |
| "`User Authorised.`", | |
| "`Calling Pavel Durov` `At +916969696969`", | |
| "`Private Call Connected...`", | |
| "`Me: Hello Sir, Please Ban This Telegram Account.`", | |
| "`Pavel: May I Know Who Is This?`", | |
| "`Me: Yo Brah, I Am from ` @TeleBotSupport ", | |
| "`Pavel: OMG!!! Long time no see, Wassup Brother...\nI'll Make Sure That Guy Account Will Get Blocked Within 24Hrs.`", | |
| "`Me: Thanks, See You Later Brah.`", | |
| "`Pavel: Please Don't Thank Brah, Telegram Is Our's. Just Gimme A Call When You Become Free.`", | |
| "`Me: Is There Any Issue/Emergency???`", | |
| "`Pavel: Yes Sur, There Is A Bug In Telegram v69.6.9.\nI Am Not Able To Fix It. If Possible, Please Help Fix The Bug.`", | |
| "`Me: Send Me The App On My Telegram Account, I Will Fix The Bug & Send You.`", | |
| "`Pavel: Sure Sur \nTC Bye Bye :)`", | |
| "`Private Call Disconnected.`", | |
| ] | |
| for i in animation_ttl: | |
| await asyncio.sleep(animation_interval) | |
| await event.edit(animation_chars[i % 18]) | |
| CMD_HELP.update({"call": ".call\nUse - Animation Plugin, to make a fake call."}) | |