-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjd_tg_auto_send.py
35 lines (27 loc) · 1.22 KB
/
jd_tg_auto_send.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
"""
new Env('tg农场助理池子');
cron: 30 23 * * 0 tg_auto_send.py
"""
import os
from utils.utils import get_tg_client
async def main(client):
texts = [
(
"chriszhuli_bot",
"/farm 37a42e0be3a24bc493b397ae50ff07cf&3e82c57246db4331a60bb91755b68e08&a6152559c2df4b57bfb2cefd4916ab91&155380a3d9834e9b9814bed1d4d20b00&a7b1c06cc6874e559952e3f88031b0e1",
),
(
"chriszhuli_bot",
"/bean yj35hqk6ip2sszfd5jxckh54nm&4npkonnsy7xi2sihztxeqryq3gxmk5cqrby26qq&kidjksa67jjv5lfj2vicj275me5ac3f4ijdgqji&4srjlxwmo6kapro6uookyfafoiuky2f2gwzew5y&4npkonnsy7xi2c5ti74jv5fnibdhqwxlnoqlpdq&ebxm5lgxoknqck745mm3flhirnosa6pgc34arfi",
),
(
"chriszhuli_bot",
"/newfarm ycXdOa_i_QXADxdQfcjGTwzE0w&ycXdOaS1kgvLXEAGeMmueKULItHx3w71-w&ycXdOShOYtl0r8D95RwUinDbe9NY&ycXdOaS1kn6tdmEgHbjbSMoZTUczvpoL&ycXdOaS1kgvBChEGLJysL9j0NDejMuiA7w&ycXdOaS1kniqb34XIKPWT2C16UM1tqFP&ycXdOaS1kni6YW8MHrLVdu6jLzPkNI85&ycXdOaS1kgnBCUAGcp-pK5w3Yk9QweI_fg",
),
]
for text in texts:
await client.send_message(text[0], text[1])
if __name__ == "__main__":
client = get_tg_client()
with client:
client.loop.run_until_complete(main(client))