-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade dotnet 6 and add about command (#11)
- Loading branch information
Showing
32 changed files
with
162 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Common.Models | ||
{ | ||
public class AnswerCallbackQuery | ||
{ | ||
[JsonProperty("callback_query_id")] | ||
[JsonPropertyName("callback_query_id")] | ||
public string CallbackQueryId { get; set; } | ||
|
||
[JsonProperty("text")] | ||
[JsonPropertyName("text")] | ||
public string Text { get; set; } | ||
|
||
[JsonProperty("show_alert")] | ||
[JsonPropertyName("show_alert")] | ||
public bool ShowAlert { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Common.Models | ||
{ | ||
public class TelegramDeleteMessage | ||
{ | ||
[JsonProperty("chat_id")] | ||
[JsonPropertyName("chat_id")] | ||
public int ChatId { get; set; } | ||
|
||
[JsonProperty("message_id")] | ||
[JsonPropertyName("message_id")] | ||
public int MessageId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Common.Models | ||
{ | ||
public class TelegramInlineKeyboardButton | ||
{ | ||
[JsonProperty("text")] | ||
[JsonPropertyName("text")] | ||
public string Text { get; set; } | ||
|
||
[JsonProperty("callback_data")] | ||
[JsonPropertyName("callback_data")] | ||
public string CallBackData { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Common.Models | ||
{ | ||
public class TelegramInlineKeyboardMarkup | ||
{ | ||
[JsonProperty("inline_keyboard")] | ||
[JsonPropertyName("inline_keyboard")] | ||
public IEnumerable<IEnumerable<TelegramInlineKeyboardButton>> InlineKeyboard { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Common.Models | ||
{ | ||
public class TelegramKeyboardButton | ||
{ | ||
[JsonProperty("text")] | ||
[JsonPropertyName("text")] | ||
public string Text { get; set; } | ||
|
||
[JsonProperty("request_location")] | ||
[JsonPropertyName("request_location")] | ||
public bool RequestLocation { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Common.Models | ||
{ | ||
public class TelegramMessage | ||
{ | ||
[JsonProperty("chat_id")] | ||
[JsonPropertyName("chat_id")] | ||
public string ChatId { get; set; } | ||
|
||
[JsonProperty("text")] | ||
[JsonPropertyName("text")] | ||
public string Text { get; set; } | ||
|
||
[JsonProperty("parse_mode")] | ||
[JsonPropertyName("parse_mode")] | ||
public string ParseMode { get; set; } | ||
|
||
[JsonProperty("disable_web_page_preview")] | ||
[JsonPropertyName("disable_web_page_preview")] | ||
public bool DisableWebPagePreview { get; set; } | ||
|
||
[JsonProperty("disable_notification")] | ||
[JsonPropertyName("disable_notification")] | ||
public bool DisableNotification { get; set; } | ||
|
||
[JsonProperty("reply_markup")] | ||
[JsonPropertyName("reply_markup")] | ||
public string ReplyMarkup { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Common.Models | ||
{ | ||
public class TelegramReplyKeyboardMarkup | ||
{ | ||
[JsonProperty("keyboard")] | ||
[JsonPropertyName("keyboard")] | ||
public IEnumerable<IEnumerable<TelegramKeyboardButton>> Keyboard { get; set; } | ||
|
||
[JsonProperty("one_time_keyboard")] | ||
[JsonPropertyName("one_time_keyboard")] | ||
public bool OneTimeKeyboard { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Common.Models | ||
{ | ||
public class TelegramResponse | ||
{ | ||
[JsonProperty("error_code")] | ||
[JsonPropertyName("error_code")] | ||
public int ErrorCode { get; set; } | ||
|
||
[JsonProperty("description")] | ||
[JsonPropertyName("description")] | ||
public string Description { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ public enum Command | |
Magnitude = 200, | ||
Location = 300, | ||
RemoveLocation = 301, | ||
Stop = 400 | ||
Stop = 400, | ||
About = 500 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
namespace KandilliEarthquakeBot.Models | ||
using System.Text.Json.Serialization; | ||
|
||
namespace KandilliEarthquakeBot.Models | ||
{ | ||
public class CallbackQuery | ||
{ | ||
[JsonPropertyName("id")] | ||
public string Id { get; set; } | ||
|
||
[JsonPropertyName("message")] | ||
public Message Message { get; set; } | ||
|
||
[JsonPropertyName("data")] | ||
public string Data { get; set; } | ||
} | ||
} |
Oops, something went wrong.