Welcome message for updates and change in json

This commit is contained in:
Florian Kellermann 2022-03-16 17:49:57 +01:00
parent e4423a76b7
commit 2961bbb429
2 changed files with 4 additions and 1 deletions

View File

@ -169,6 +169,9 @@ def send_update(message):
with open(json_path) as json_file:
json_share_data = json.load(json_file)
int_share_count = int(json_share_data['share_count'])
str_username = str(json_share_data['user'])
bot.send_message(chat_id=user_id, text=f'Hello {str_username}. Here is the update on your currently owned shares:')
for i in range(int_share_count):

View File

@ -1,5 +1,5 @@
{
"user": "NormalParameter",
"user": "FloKell",
"share_count": 2,
"shares": [
{