public VkCoreApiBase(BotCore core, long groupId) { Core = core; GroupId = groupId; Chats = new Dictionary <long, Chat>(); MessageHandler = new MessageHandler(this); }
public VkCoreApi(BotCore core) : base(core, 0) { _vkApi = new Dictionary <long, VkCoreApiBase>(); var accesToken = Core.Configuration.GetValue <string>($"Config:AccessToken", null); if (accesToken != null) { Authorize(new ApiAuthParams { AccessToken = accesToken }); } }