Welcome message for updates and change in json
This commit is contained in:
parent
e4423a76b7
commit
2961bbb429
@ -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):
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"user": "NormalParameter",
|
||||
"user": "FloKell",
|
||||
"share_count": 2,
|
||||
"shares": [
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user