Bugfix with MessageResult leads to having not access to MessageClient
This commit is contained in:
parent
e2ac7975a5
commit
d08cbe8b0e
@ -29,12 +29,6 @@ namespace TelegramBotBase.Base
|
||||
}
|
||||
}
|
||||
|
||||
public DeviceSession Device
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The message id
|
||||
/// </summary>
|
||||
|
||||
@ -4,12 +4,26 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Telegram.Bot;
|
||||
using TelegramBotBase.Sessions;
|
||||
|
||||
namespace TelegramBotBase.Base
|
||||
{
|
||||
public class ResultBase : EventArgs
|
||||
{
|
||||
public MessageClient Client { get; set; }
|
||||
public MessageClient Client
|
||||
{
|
||||
get
|
||||
{
|
||||
return Device.ActiveForm.Client;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public DeviceSession Device
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public virtual long DeviceId { get; set; }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user