mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[store] add user balance
This commit is contained in:
@@ -37,12 +37,16 @@ public class Store : BotEventHandler
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await Bot.SendTextMessageAsync(Chat.Id, "Чего пожелаете?", replyMarkup: new InlineKeyboardMarkup(
|
var user = From;
|
||||||
_provider.GetServices<IRandomMediaService>()
|
var reputation = await _reputation.GetUserReputationAsync(Chat, user);
|
||||||
.OrderBy(x => x.StoreItem.Order)
|
|
||||||
.Select(x => x.StoreItem.ToButton(From.Id))
|
await Bot.SendTextMessageAsync(Chat.Id, $"<b>{user.ToHtml()} ({reputation})</b>, чего пожелаете?", ParseMode.Html,
|
||||||
.Chunk(2)
|
replyMarkup: new InlineKeyboardMarkup(
|
||||||
.ToList()
|
_provider.GetServices<IRandomMediaService>()
|
||||||
|
.OrderBy(x => x.StoreItem.Order)
|
||||||
|
.Select(x => x.StoreItem.ToButton(From.Id))
|
||||||
|
.Chunk(2)
|
||||||
|
.ToList()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user