示例#1
0
def send_welcome(message):
    if (message.chat.id != feedBack_target_chat):
        return
    check = trafficController.check_spam(message.chat.id)
    if check == "OK":
        process.respond_to_user_ID(message.chat.id)
        trafficController.drop_check(message.chat.id)
示例#2
0
 def output_FUNC(input_userID,input_2nd):
     try:
         FUNC(input_userID,input_2nd)
     except:
         bot.send_message(input_userID,MSGs.we_cant_do_it_now)
         trafficController.drop_check(input_userID)
         log_error("ERROR: " + FUNC.__name__)
         return
示例#3
0
 def output_FUNC(input_message):
     try:
         FUNC(input_message)
     except:
         bot.send_message(input_message.chat.id,MSGs.we_cant_do_it_now)
         trafficController.drop_check(input_message.chat.id)
         log_error("ERROR: " + FUNC.__name__)
         return
示例#4
0
def send_welcome(message):
    check = trafficController.check_spam(message.chat.id)
    if check == "OK":
        bot.send_message(message.chat.id,
                         MSGs.greetings,
                         reply_markup=MSGs.enter_userpass_markup,
                         parse_mode='HTML')
        users.add_user(message)
        trafficController.drop_check(message.chat.id)
示例#5
0
def test_callback(call):
    bot.answer_callback_query(call.id)

    if users.know_user(call.from_user.id) == False:
        return

    check = trafficController.check_spam(call.from_user.id)
    if check == "OK":
        process.process_user_call(call)
        trafficController.drop_check(call.from_user.id)
示例#6
0
def send_welcome(message):
    check = trafficController.check_spam(message.chat.id)
    if check == "OK":
        process.cancel_action(message.chat.id)
        trafficController.drop_check(message.chat.id)
示例#7
0
def send_welcome(message):
    check = trafficController.check_spam(message.chat.id)
    if check == "OK":
        process.get_feedback(message.chat.id)
        trafficController.drop_check(message.chat.id)
示例#8
0
def send_welcome(message):
    check = trafficController.check_spam(message.chat.id)
    if check == "OK":
        process.send_help_MSG(message.chat.id)
        trafficController.drop_check(message.chat.id)
示例#9
0
def send_welcome(message):
    check = trafficController.check_spam(message.chat.id)
    if check == "OK":
        process.renew_account_books(message.chat.id)
        trafficController.drop_check(message.chat.id)
示例#10
0
def text_MSG(message):
    check = trafficController.check_spam(message.chat.id)
    if check == "OK":
        process.process_user_MSG(message)
        trafficController.drop_check(message.chat.id)