{"id":18658108,"url":"https://github.com/nanofuxion/kik_go_api","last_synced_at":"2025-11-05T23:30:26.586Z","repository":{"id":57630245,"uuid":"312058285","full_name":"nanofuxion/kik_go_api","owner":"nanofuxion","description":"An unofficial kik bot api written in Go based on YassienW/kik-node-api","archived":false,"fork":false,"pushed_at":"2023-07-17T19:02:46.000Z","size":16,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-27T15:22:18.678Z","etag":null,"topics":["chatbot","golang","kik","kik-api","kikbot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanofuxion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-11T18:40:50.000Z","updated_at":"2024-04-30T13:38:40.000Z","dependencies_parsed_at":"2024-06-20T07:02:45.301Z","dependency_job_id":"a750f8c1-f9f1-424a-b298-d27e71c6cf60","html_url":"https://github.com/nanofuxion/kik_go_api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanofuxion%2Fkik_go_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanofuxion%2Fkik_go_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanofuxion%2Fkik_go_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanofuxion%2Fkik_go_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanofuxion","download_url":"https://codeload.github.com/nanofuxion/kik_go_api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239475964,"owners_count":19645041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","golang","kik","kik-api","kikbot"],"created_at":"2024-11-07T07:31:33.376Z","updated_at":"2025-11-05T23:30:26.532Z","avatar_url":"https://github.com/nanofuxion.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kik_go_api\n\nkik_go_api is a Go package for interacting with the Kik messaging API. It allows you to build bots and clients that can send/receive messages on Kik.\n\nThe package was inspired by the [kik-node-api](https://github.com/YassienW/kik-node-api) Node.js library.\n\n## Usage\n\nTo use kik_go_api, first create a Client instance:\n\n```go\nclient := kik_go_api.Client\n```\n\nThen configure the client with your username, password, and optionally the Kik version:\n\n```go\nclient.Settings(\"username\", \"password\") \n// Kik version defaults to 15.25.0.22493\n\nclient.Settings(\"username\", \"password\", \"15.15.0.12345\", \"pNtboj79GGFYk9w2RbZZTxLpZUY=\")  \n// Custom Kik version and SHA1 hash\n```\n\n\u003e NOTE: The Kik version defaults to 15.25.0.22493 if not provided. Only the major and minor version numbers are needed.\n\nNext, connect the client:\n\n```go \nmessages := make(chan string)\ngo client.Connect(messages)\n```\n\nThis will start receiving messages on the `messages` channel. \n\nTo send messages, use the `SendMsg` method:\n\n```go\nclient.SendMsg(\"Hello world!\", \"someone@talk.kik.com\") // Send to a user\nclient.SendMsg(\"Hello group!\", \"group@groups.kik.com\") // Send to a group\n``` \n\nThere is also a `SendRaw` method for sending raw XML stanzas:\n\n```go\nclient.SendRaw(`\n    \u003cmessage to=\"someone@talk.kik.com\"\u003e\n      \u003cbody\u003eHello!\u003c/body\u003e \n    \u003c/message\u003e\n`)\n```\n\n### Receiving Messages\n\nTo parse incoming messages, you can pass the `msg` string from the `messages` channel to your own parsing function. \n\nFor example, here is a basic parser from `bot.go.example`:\n\n```go\nfor msg := range messages {\n\n  if strings.Contains(msg, \"type=\\\"chat\\\"\") {\n      // Extract JID \n      jid := extractJid(msg)  \n\n      // Build message stanza\n      stanza := buildMessageStanza(\"Hello!\", jid) \n\n      // Send message\n      client.SendRaw(stanza)\n  }\n\n}\n\nfunc extractJid(msg string) string {\n  // Use regexp to extract JID \n  return jid \n}\n\nfunc buildMessageStanza(body string, to string) string {\n  // Build XML stanza\n  return stanza\n}\n```\n\nThis extracts the incoming message JID and sends a response.\n\nYou can replicate the parsing logic from other Kik API wrappers like [kik-bot-api-unofficial](https://github.com/tomer8007/kik-bot-api-unofficial) (Python) or [kik-node-api](https://github.com/YassienW/kik-node-api) (Node.js).\n\n## Contributing\n\nContributions are welcome! kik_go_api is missing some features like group chat and read receipts. See the [issue tracker](https://github.com/nanofuxion/kik_go_api/issues) for details.\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanofuxion%2Fkik_go_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanofuxion%2Fkik_go_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanofuxion%2Fkik_go_api/lists"}