May-09-2020, 05:34 PM
(May-09-2020, 04:09 PM)ThomasL Wrote: If message needs to be a string then the () brackets are the problem.
Hopefully you use a python version >= 3.6 then i would suggest using f-string
message = f'price: {data["USD"]["last"]}'
Well, that did something. If I delete the "Price:", and then try to send it, I actually get the price, but as soon as I put any words into the message, I get a blank message. Now the problem is that not only that I want the "Price:" word, I also want a time stamp that I originally planned to put there.