Skip to content

Commit

Permalink
Add name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sardor Muminov committed Jul 25, 2017
1 parent 7ff1920 commit 3e15f52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
@@ -59,13 +59,14 @@ async def bitcoin(chat, match):
sell = usd['sell']
buy = usd['buy']
text = format_text('''
Биткойн
{name}, биткойн курси қуйидагича.
Курс: {last}{symbol}
⬆️ Сотасиз: {sell}{symbol}
⬇️ Оласиз: {buy}{symbol}
''')
await chat.send_text(
text.format(last=last, symbol=symbol, sell=sell, buy=buy))
text.format(name=chat.sender['first_name'], last=last, symbol=symbol, sell=sell, buy=buy))


@bot.command(r'/stop')

0 comments on commit 3e15f52

Please sign in to comment.