Telefrag

Bots Made Easy

Building a Bot is this easy:

public class TimeBot : FragBot { }

Add commands and callbacks by writing methods on that class.

[BotCommand]
public async Task Time(Context c)
{
    await c.Reply($"Current time: {DateTime.Now}");
}

Control access and other behavior by decorating the bot's members with attributes.

[BotCommand(Description = "Gets the current time")]
[Category("Time commands")]
[AdminOnly]
public async Task Time(Context c)
{
    await c.Reply($"Current time: {DateTime.Now}");
}

Just Stop Writing ...

  • Serialization/deserialization code
  • Database interaction/EF crap
  • HTTP client/server minutia
  • Code that tracks user IDs/names
  • Hard-coded behaviors
  • Your own security checks
  • Polling loops
  • Anything related to MVC
We do all this shit for you.

Web Integration

Use Telefrag and keep your website/back-end and your Telegram bots in the same project and assembly.

Use your existing types and business logic in your bots. Control Telegram directly from your web code without any intermediary APIs or serialization.

Use Telegram Login to authenticate users seamlessly to your website. Use Telefrag groups to control access to your own pages and processes. Use Telefrag as your RESTful API back-end.