Giter Site home page Giter Site logo

seq.app.telegram's Issues

System.IO.FileNotFoundException: Could not load file or assembly 'Telegram.Bot, Version=13.2.1.0, Culture=neutral, PublicKeyToken=null'.

I install the latest version v.0.0.1.9

When I try to send an event to telegram it failed with the following error

System.IO.FileNotFoundException: Could not load file or assembly 'Telegram.Bot, Version=13.2.1.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'Telegram.Bot, Version=13.2.1.0, Culture=neutral, PublicKeyToken=null'
   at Seq.App.Telegram.TelegramReactor.On(Event`1 evt)
   at Seq.Apps.GenericHost.AppHost.SendTypedEventAsync(String clef)

Misleading exception about invalid token format due to lack of support for 64-bit bot IDs

Within the past few months, Telegram has started assigning users and bots 64-bit IDs. Newer versions of the Telegram API support these IDs (version 17 and newer I believe), but since this project is using an older version, newly created bots can't be used.

Attempting to use a token for a new bot with the most recent release of Seq.App.Telegram results in the following misleading exception being thrown by the Telegram API:

Unhandled Exception: System.ArgumentException: Invalid format.
A valid token looks like "1234567:4TT8bAc8GHUspu3ERYn-KGcvsvGB9u_n4ddy"

I was able to fix this by updating the Telegram API to the latest version.

I would have submitted a PR for that change, however, it seems the update also removed the proxy constructor parameter for the Telegram client. I figure there must be a new way of configuring the proxy (perhaps on the HttpClient itself?), but since I didn't need the proxy, I didn't look into it much further and just stripped out the proxy-related code so that I could continue with my configuration of Seq.

Error config Seq.App.Telegram

I chatted with BotFather to get the Token Bot and followed the instructions to create a new bot. I then set up as shown below, but it did not send me a message about Telegram. I wonder if I got the configuration wrong at any step?
I knit using Seq 20.1

image

image

App host failed unexpectedly

Hi the program encountered the following error after running
System.OverflowException: Value was either too large or too small for an Int32. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.String.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at Seq.Apps.GenericHost.AppHost..ctor(ILogger logger, String packageBinaryPath, String mainReactorTypeName, App app, Host host) at Seq.Apps.GenericHost.Program.

d__0.MoveNext()

Seq app telegram exception

Hi, I am using seq on Linux Ubuntu 22.04 LTS. I also use an app to send information to telegram bot. Periodically I get an exception:

Telegram.Bot.Exceptions.RequestException: Request timed out
---> System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
---> System.TimeoutException: A task was canceled.
---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.HttpConnectionWaiter1.WaitForConnectionAsync(Boolean async, CancellationToken requestCancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Telegram.Bot.TelegramBotClient.g__SendRequestAsync|22_0[TResponse](HttpClient httpClient, HttpRequestMessage httpRequest, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Telegram.Bot.TelegramBotClient.g__SendRequestAsync|22_0[TResponse](HttpClient httpClient, HttpRequestMessage httpRequest, CancellationToken cancellationToken)
at Telegram.Bot.TelegramBotClient.MakeRequestAsync[TResponse](IRequest1 request, CancellationToken cancellationToken) at Telegram.Bot.TelegramBotClientExtensions.SendTextMessageAsync(ITelegramBotClient botClient, ChatId chatId, String text, Nullable1 parseMode, IEnumerable1 entities, Nullable1 disableWebPagePreview, Nullable1 disableNotification, Nullable1 replyToMessageId, Nullable1 allowSendingWithoutReply, IReplyMarkup replyMarkup, CancellationToken cancellationToken) at Seq.App.Telegram.TelegramReactor.OnAsync(Event1 evt) in C:\projects\seq-app-telegram\src\Seq.App.Telegram\TelegramReactor.cs:line 83
at SeqCli.Apps.Hosting.AppContainer.SendTypedEventAsync(String clef) in C:\projects\seqcli\src\SeqCli\Apps\Hosting\AppContainer.cs:line 113

Are there any ideas why this exception happens? It hangs my server and i need to reboot it every time...

"link" on the end of every message

Hi,
on every message I send to Telegram chat I have word "link" is there possibily to remove it ( I have no use for links to Seq, because Seq is not publicaly accessible)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.