Last active
February 6, 2019 20:38
-
-
Save worldbeater/582ec3875322ec377e9450aef2346530 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Program | |
open System | |
open Funogram.Bot | |
/// Handles all Telegram events. | |
let update context = | |
context.Update.UpdateId | |
|> printfn "Received update: %i" | |
[<EntryPoint>] | |
let main _ = | |
startBot { | |
defaultConfig with | |
Token = "bot-token" | |
} update None | |
|> Async.RunSynchronously | |
|> ignore | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment