{"repo":"iamelevich/pocketbase-plugin-telegram-auth","free":true,"listed":false,"github":"https://github.com/iamelevich/pocketbase-plugin-telegram-auth","clone":"git clone https://github.com/iamelevich/pocketbase-plugin-telegram-auth.git","description":"This plugin implements Telegram WebApp Auth and Telegram Login Widget for the pocketbase","language":"Go","stars":51,"topics":["pocketbase","telegram","telegram-bot","pocketbase-plugins"],"license":"MIT","category":"chat-messaging","readme_excerpt":"- Overview - Requirements - Installation - Autofill fields - Example - Usage - pocketbase\\ plugin\\ telegram\\ auth - Index - type Options - type Plugin - func MustRegister - func Register - func (\\ Plugin) AuthByTelegramData - func (\\ Plugin) GetCollection - func (\\ Plugin) GetForm - func (\\ Plugin) Validate - Contributing - Process - Development setup - Testing - Writing tests - Linting - Docs update in README Overview This plugin implements Telegram WebApp Auth and Telegram Login Widget for the pocketbase Requirements - Go 1.25+ - Pocketbase 0.36+ Installation Autofill fields Next fields will be filled from telegram in auth collection record if exists: - name - string - first name - string - last name - string - telegram username - string - telegram id - string - language code - string Example You can check examples in examples folder After that new route POST /api/collections/users/auth-with-telegram will be available. Usage Simple usage with js. You can check react example here pocketbase\\ plugin\\ telegram\\ auth Index - type Options - type Plugin - func MustRegister\\(app core.App, options \\ Options\\) \\ Plugin - func Register\\(app core.App, options \\ Options\\) \\(\\ Plugin, error\\) - func \\(p \\ Plugin\\) AuthByTelegramData\\(tgData forms.TelegramData\\) \\(\\ core.Record, \\ auth.AuthUser, error\\) - func \\(p \\ Plugin\\) GetCollection\\(\\) \\(\\ core.Collection, error\\) - func \\(p \\ Plugin\\) GetForm\\(optAuthRecord \\ core.Record\\) \\(\\ forms.RecordTelegramLogin, error\\) - func \\(p \\ Plugi","default_branch":null,"files":null,"tree":[],"storefront":"/r/iamelevich","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/iamelevich/pocketbase-plugin-telegram-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}