mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 08:16:05 -07:00
Fixed telegram #1667
This commit is contained in:
parent
55550f1b30
commit
dd306aae5a
1 changed files with 4 additions and 4 deletions
|
@ -12,18 +12,18 @@ namespace Ombi.Api.Telegram
|
|||
}
|
||||
|
||||
private readonly IApi _api;
|
||||
private const string BaseUrl = "https://api.telegram.org/bot";
|
||||
private const string BaseUrl = "https://api.telegram.org/";
|
||||
|
||||
|
||||
public async Task Send(string message, string botApi, string chatId, string parseMode)
|
||||
{
|
||||
var request = new Request($"{botApi}/sendMessage", BaseUrl, HttpMethod.Post);
|
||||
request.AddQueryString("chat_id", chatId);
|
||||
var request = new Request($"bot{botApi}/sendMessage", BaseUrl, HttpMethod.Post);
|
||||
|
||||
var body = new
|
||||
{
|
||||
text = message,
|
||||
parse_mode = parseMode
|
||||
parse_mode = parseMode,
|
||||
chat_id= chatId
|
||||
};
|
||||
|
||||
request.AddJsonBody(body);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue