adding some Models and start Bale Bot Implementation ...
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xBotService.Models
|
||||
{
|
||||
public class XBotMessageRequest
|
||||
{
|
||||
public long ChatId { get; set; }
|
||||
public string Text { get; set; }
|
||||
public string ParseMode { get; set; }
|
||||
public XBotReplyMarkup ReplyMarkup { get; set; }
|
||||
}
|
||||
|
||||
public class XBotReplyMarkup
|
||||
{
|
||||
public List<List<XBotInlineButton>> InlineKeyboard { get; set; }
|
||||
}
|
||||
|
||||
public class XBotInlineButton
|
||||
{
|
||||
public string Text { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string CallbackData { get; set; }
|
||||
}
|
||||
|
||||
public class XBotMessageResponse
|
||||
{
|
||||
public bool Ok { get; set; }
|
||||
public string Description { get; set; }
|
||||
public XBotResMessage Result { get; set; }
|
||||
}
|
||||
|
||||
public class XBotResMessage
|
||||
{
|
||||
public long Date { get; set; }
|
||||
public string Text { get; set; }
|
||||
public long MessageId { get; set; }
|
||||
public XBotResUser From { get; set; }
|
||||
public XBotResChat Chat { get; set; }
|
||||
}
|
||||
|
||||
public class XBotResUser
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public bool IsBot { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
}
|
||||
|
||||
public class XBotResChat
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Type { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
}
|
||||
|
||||
public class XBotUpdate
|
||||
{
|
||||
public long UpdateId { get; set; }
|
||||
public XBotResMessage Message { get; set; }
|
||||
public XBotCallbackQuery CallbackQuery { get; set; }
|
||||
}
|
||||
|
||||
public class XBotCallbackQuery
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string Data { get; set; }
|
||||
public XBotResUser From { get; set; }
|
||||
public XBotResMessage Message { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user