forked from cHAuHaNz/TGUserBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcall.py
55 lines (35 loc) · 1.71 KB
/
call.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
"""COMMAND : ./cull"""
from telethon import events
import asyncio
@borg.on(events.NewMessage(pattern=r"\.(.*)", outgoing=True))
async def _(event):
if event.fwd_from:
return
animation_interval = 5
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` @amnd33p ,`Please Connect me to Pavel Durov Shukla`",
"`User Authorised.`",
"`Calling Pavel Durov Shukla (@durov) At +916969696969`",
"`Private Call Connected...`",
"`Me: Hello Sir, Please Ban This Telegram Account.`",
"`Durov: May I Know Who Is This?`",
"`Me: Yo Brah, I Am cHAuHaN`",
"`Durov: OMG!!! I Am FAN Of You Sir...\nI'll Make Sure That Guy Account Will Get Blocked Within 24Hrs.`",
"`Me: Thanks, See You Later Brah.`",
"`Durov: Please Don't Thank Sir, Telegram Is Your's. Just Give me a call whenever you are free.`",
"`Me: Is There Any Issue/Emergency???`",
"`Durov: Yes Sir, There Is A Bug In Telegram v5.11.0.\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.`",
"`Durov: Sure Sir \nTC Bye Bye :)`",
"`Private Call Disconnected.`"
]
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await event.edit(animation_chars[i % 18])