Issue fixed for no Raw message Result and Device Session extended
This commit is contained in:
@@ -7,6 +7,7 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Telegram.Bot.Exceptions;
|
||||
using Telegram.Bot.Types;
|
||||
using Telegram.Bot.Types.Enums;
|
||||
using Telegram.Bot.Types.InputFiles;
|
||||
@@ -296,7 +297,7 @@ namespace TelegramBotBase.Sessions
|
||||
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
catch(ApiRequestException ex)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -304,6 +305,16 @@ namespace TelegramBotBase.Sessions
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Löscht die aktuelle Nachricht, oder die übergebene
|
||||
/// </summary>
|
||||
/// <param name="messageId"></param>
|
||||
/// <returns></returns>
|
||||
public virtual async Task<bool> DeleteMessage(Message message)
|
||||
{
|
||||
return await DeleteMessage(message.MessageId);
|
||||
}
|
||||
|
||||
|
||||
public event EventHandler<MessageSentEventArgs> MessageSent
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user