Issue fixed for no Raw message Result and Device Session extended
This commit is contained in:
parent
04f7dde3dd
commit
04d7a52921
@ -64,7 +64,7 @@ namespace TelegramBotBase.Base
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.RawCallbackData.CallbackQuery.Data;
|
||||
return this.RawCallbackData?.CallbackQuery?.Data;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user