- X.Extensions.Logging.Telegram
- X.Extensions.Serilog.Sinks.Telegram
Telegram logging providers for Serilog and standard .NET logging.
What is Telegram? What do I do here? Telegram is a messaging app with a focus on speed and security, it’s super-fast, simple and free. You can use Telegram on all your devices at the same time — your messages sync seamlessly across any number of your phones, tablets or computers. Telegram has over 500 million monthly active users and is one of the 10 most downloaded apps in the world.
Because it is very comfortable - you can receive important messages directly to your smartphone or laptop.
For sending log messages into telegram channel or chat, you need to create telegram bot before. Here you can find how to do it. After you create bot, add it to a channel with admin role and allow bot to post messages.
In the telegram, there are two types of channels: public and private. For public channel you can use channel name as ChatId in configuration.
For private channel you can use @JsonDumpBot to get private channel id. Just forward any message from private channelto this bot. Additional information you can find here.
Do not forget to add your bot as admin with write messages permission to channel.
Read library documentation here.
Read library documentation here.
This repository includes several example projects that demonstrate how to use both libraries in various scenarios. These examples can be helpful if you're starting or looking to use a specific feature.
Feel free to add any improvements you want via pull requests. All pull requests must be linked to an issue.
This project is licensed under the MIT License.