mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
fix: remove another bunch of obsolete method calls
This commit is contained in:
@@ -38,14 +38,14 @@ public class Store : CommonHandler
|
||||
|
||||
if (_reputation == null)
|
||||
{
|
||||
await Bot.SendTextMessageAsync(Chat.Id, "Reputation is unavailable.");
|
||||
await Bot.SendMessage(Chat.Id, "Reputation is unavailable.");
|
||||
return;
|
||||
}
|
||||
|
||||
var user = From;
|
||||
var reputation = await _reputation.GetUserReputationAsync(Chat, user);
|
||||
|
||||
await Bot.SendTextMessageAsync(Chat.Id, $"<b>{user.ToHtml()} ({reputation})</b>, чего пожелаете?", parseMode: ParseMode.Html,
|
||||
await Bot.SendMessage(Chat.Id, $"<b>{user.ToHtml()} ({reputation})</b>, чего пожелаете?", parseMode: ParseMode.Html,
|
||||
replyMarkup: new InlineKeyboardMarkup(
|
||||
_provider.GetServices<IRandomMediaService>()
|
||||
.ToAsyncEnumerable()
|
||||
@@ -99,7 +99,7 @@ public class Store : CommonHandler
|
||||
var reputation = await _reputation.GetUserReputationAsync(Chat, From);
|
||||
if (reputation < storeItem.Price)
|
||||
{
|
||||
await Bot.EditMessageTextAsync(
|
||||
await Bot.EditMessageText(
|
||||
Chat.Id,
|
||||
messageId,
|
||||
$"<b>{From.ToHtml()} ({reputation})</b>, продолжай работать и тебе обязательно хватит на покупку.",
|
||||
|
||||
Reference in New Issue
Block a user