update
This commit is contained in:
BIN
app/__pycache__/tgMesaage.cpython-310.pyc
Normal file
BIN
app/__pycache__/tgMesaage.cpython-310.pyc
Normal file
Binary file not shown.
BIN
app/__pycache__/tgMessage.cpython-310.pyc
Normal file
BIN
app/__pycache__/tgMessage.cpython-310.pyc
Normal file
Binary file not shown.
16
app/tgMessage.py
Normal file
16
app/tgMessage.py
Normal 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
BIN
images/bookqr.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 105 KiB |
BIN
images/combined_None.jpg
Normal file
BIN
images/combined_None.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
BIN
images/combined_qrcode.jpg
Normal file
BIN
images/combined_qrcode.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
BIN
images/combined_wxid_d5cny7otsd1922.jpg
Normal file
BIN
images/combined_wxid_d5cny7otsd1922.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
BIN
images/meetupqr.jpg
Normal file
BIN
images/meetupqr.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 106 KiB |
BIN
images/nomadqr.jpg
Normal file
BIN
images/nomadqr.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 102 KiB |
Reference in New Issue
Block a user