https://github.com/cheqd/connector-telegram
Custom connectors and modifications for LogTo used in Community Credentials App
https://github.com/cheqd/connector-telegram
logto telegram
Last synced: about 1 year ago
JSON representation
Custom connectors and modifications for LogTo used in Community Credentials App
- Host: GitHub
- URL: https://github.com/cheqd/connector-telegram
- Owner: cheqd
- License: apache-2.0
- Created: 2023-02-28T11:07:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T12:34:15.000Z (about 2 years ago)
- Last Synced: 2024-05-22T13:45:34.451Z (about 2 years ago)
- Topics: logto, telegram
- Language: TypeScript
- Homepage:
- Size: 1.74 MB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Telegram OAuth connector for LogTo
[](https://github.com/cheqd/connector-telegram/releases/latest)  [](https://github.com/cheqd/connector-telegram/blob/main/LICENSE)
[](https://github.com/cheqd/connector-telegram/releases/)  [](https://github.com/cheqd/connector-telegram/graphs/contributors)
[](https://github.com/cheqd/connector-telegram/actions/workflows/dispatch.yml) [](https://github.com/cheqd/connector-telegram/actions/workflows/codeql.yml) 
## âšī¸ Overview
This NPM package is [a custom OAuth connector designed for LogTo](https://docs.logto.io/docs/recipes/configure-connectors/create-your-connector/) for use with [Telegram](https://core.telegram.org/api). [LogTo](https://logto.io/) is [an open-source identity management software](https://docs.logto.io/) with out-of-the-box support for many social connectors, and allows custom connectors to be created.
## đ ī¸ Configuration
Once you've added this custom connector to LogTo (see *Developer Guide*) below, you need to configure your connector. The steps defined below mirror the [setup guide for the Telegram Login Button widget](https://core.telegram.org/widgets/login).
1. [Register a new Telegram bot](https://core.telegram.org/bots#3-how-do-i-create-a-bot) using the [`@Botfather` Telegram bot](https://t.me/botfather).
2. Send the `/setdomain` message to `@Botfather` to set a public redirect URI for the bot.
1. Telegram expects this domain to be **publicly-routable**. Therefore, trying to specify this as `localhost` or a non-public domain name doesn't work.
3. Copy the Bot Token and the Bot Domain. These credentials need to be [set in your LogTo admin dashboard](https://docs.logto.io/docs/recipes/configure-connectors/social-connector/) to configure and activate the connector.
## đ§âđģ Developer Guide
### Use with LogTo
To use this connector with LogTo, copy the NPM package contents into a new folder [under `packages/connectors/connectors-telegram` on a copy of the LogTo repository](https://github.com/logto-io/logto/tree/master/packages/connectors) or the LogTo Docker image.
You can build just this library using:
```bash
npm install
npm run build
```
## đŦ Community
The [**cheqd Community Slack**](http://cheqd.link/join-cheqd-slack) is our primary chat channel for the open-source community, software developers, and node operators.
Please reach out to us there for discussions, help, and feedback on the project.
## đ Find us elsewhere
[](https://t.me/cheqd) [](http://cheqd.link/discord-github) [](https://twitter.com/intent/follow?screen\_name=cheqd\_io) [](http://cheqd.link/linkedin) [](http://cheqd.link/join-cheqd-slack) [](https://blog.cheqd.io) [](https://www.youtube.com/channel/UCBUGvvH6t3BAYo5u41hJPzw/)