This commit is contained in:
hackrobot
2024-07-17 22:47:51 +08:00
parent 1ad9dfc8da
commit 1aba12e54d
9 changed files with 16 additions and 0 deletions

Binary file not shown.

Binary file not shown.

16
app/tgMessage.py Normal file
View File

@@ -0,0 +1,16 @@
import time
import requests
# bot发消息到tg群组
def sendTg(message):
baseUrl="https://api.telegram.org/bot"
toekn="558659722:AAENA3v8gKq7R7_nsr8V58Iu-_Z6BWx2SCw"
chat_id="-861577609"
text=message
url=f'{baseUrl}{toekn}/sendMessage?chat_id={chat_id}&text={text}'
try:
r = requests.get(url)
except:
print('请检查网络代理')
# https://api.telegram.org/bot558659722:AAENA3v8gKq7R7_nsr8V58Iu-_Z6BWx2SCw/sendMessage?chat_id=-861577609&text=1234

BIN
images/bookqr.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

BIN
images/combined_None.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
images/combined_qrcode.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
images/meetupqr.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
images/nomadqr.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB