Fixed telegram_user_name
This commit is contained in:
@@ -283,7 +283,7 @@ def send_to_nr(article, product):
|
||||
"article_web_slug": article['web_slug'],
|
||||
"product_name": product['product_name'],
|
||||
"telegram_user_id": product['telegram_user_id'],
|
||||
"telegram_user_name": product['telegram_user_name'],
|
||||
"telegram_name": walladb.get_user(product['telegram_user_id']),
|
||||
"environment": constants.NR_ENV
|
||||
}
|
||||
)
|
||||
|
||||
@@ -68,7 +68,7 @@ class Worker:
|
||||
return search_objects
|
||||
|
||||
def first_run(self, product):
|
||||
logging.info(f"First run for {product['product_name']} for {walladb.get_user(product['telegram_user_id'])}")
|
||||
logging.info(f"First run for {product['product_name']} for {walladb.get_user(product['telegram_user_id'])} ({walladb.get_user(product['telegram_user_id'])})")
|
||||
for i in range(5):
|
||||
helpers.random_wait()
|
||||
list = []
|
||||
|
||||
Reference in New Issue
Block a user