mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 11:29:38 +08:00
remove unnecessary
This commit is contained in:
@@ -99,7 +99,6 @@ def get_score(rid: str) -> float:
|
||||
def is_cookie_valid() -> bool:
|
||||
cookie = load_cookies()
|
||||
r = s.get(GET_USER, cookies=cookie)
|
||||
logging.info("cookie valid? %s", r.json())
|
||||
return r.json()['status'] == 1
|
||||
|
||||
|
||||
|
||||
27
messenger.py
27
messenger.py
@@ -1,27 +0,0 @@
|
||||
# coding: utf-8
|
||||
# YYeTsBot - messenger.py
|
||||
# 2019/11/6 12:42
|
||||
|
||||
__author__ = 'Benny <benny.think@gmail.com>'
|
||||
|
||||
from config import TOKEN
|
||||
import telebot
|
||||
import sys
|
||||
|
||||
bot = telebot.TeleBot(TOKEN)
|
||||
|
||||
|
||||
def send_msg(argv):
|
||||
uid = argv[1]
|
||||
msg = argv[2]
|
||||
bot.send_chat_action(uid, 'typing')
|
||||
response = bot.send_message(uid, msg, parse_mode='markdown')
|
||||
print(response)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) != 3:
|
||||
print("Need ID and message!")
|
||||
sys.exit(2)
|
||||
|
||||
send_msg(sys.argv)
|
||||
Reference in New Issue
Block a user