Skip to content

the best (as of 2024) zig framework for creating telegram bots

Notifications You must be signed in to change notification settings

blockkwork/zgram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zgram

💡 Info

In development. use at your own risk

🚀 Example

full example: src/main.zig

    var gpa = std.heap.GeneralPurposeAllocator(.{}){};
    const allocator = gpa.allocator();

    var tg = try Client.init(allocator, TOKEN, .{});
    {
        try tg.handleAll(handleKeyboard); // handle all messages
        try tg.command("start", handleAll); // handle /start command
        try tg.hears("hello from zgram!", handleAll); // handle message
        try tg.action("data1", handleQuery); // handle callback query
    }
    try tg.startPolling(.{ .drop_pending_updates = true });

image

About

the best (as of 2024) zig framework for creating telegram bots

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published