├── .dockerignore ├── .env.example ├── .github ├── dependabot.yml ├── release-it.json └── workflows │ ├── ci.yml │ └── release-it.yml ├── .gitignore ├── .golangci.yml ├── Dockerfile ├── LICENSE ├── Makefile ├── Procfile ├── README.md ├── bot ├── bot.go ├── ctx.go ├── handler_admin.go ├── handler_chat.go ├── handler_common.go ├── handler_file.go ├── handler_settings.go ├── handler_settings_channels_and_chats.go ├── helpers.go ├── middleware.go ├── middleware_test.go ├── security.go └── state │ ├── redis_store.go │ ├── state.go │ ├── state_string.go │ └── store.go ├── core ├── chat.go ├── chattype_string.go ├── download.go ├── file.go ├── kind.go ├── kind_string.go ├── metadata.go ├── user.go └── user_settings.go ├── docker-compose.yml ├── go.mod ├── go.sum ├── main.go ├── main_test.go ├── pkg ├── build_info.go ├── health │ └── health.go ├── log │ ├── color.go │ ├── ctx.go │ └── log.go ├── secretid │ ├── generate.go │ ├── hashids.go │ └── secretid.go ├── snip │ └── unique.go └── tg │ ├── chat_input.go │ ├── chat_input_test.go │ ├── errors.go │ ├── handler.go │ ├── join_link.go │ ├── md.go │ └── mtproto.go ├── service ├── admin.go ├── auth.go ├── chat.go ├── chat_test.go └── file.go ├── sqlboiler.toml └── store ├── errors.go ├── migrations.go ├── postgres ├── base.go ├── chat.go ├── chat_test.go ├── dal │ ├── boil_queries.go │ ├── boil_table_names.go │ ├── boil_types.go │ ├── chat.go │ ├── download.go │ ├── file.go │ ├── psql_upsert.go │ └── user.go ├── download.go ├── file.go ├── migrations │ ├── 10_document_new_subscription.go │ ├── 11_user_ref.go │ ├── 12_file_copyright.go │ ├── 13_file_linked_post_uri.go │ ├── 1_user.go │ ├── 2_document.go │ ├── 3_download.go │ ├── 4_foreign_fix_and_index.go │ ├── 5_public_id.go │ ├── 6_settings.go │ ├── 7_rename_doc_to_file.go │ ├── 8_chat.go │ ├── 9_file_restriction.go │ └── migrations.go ├── postgres.go ├── postgres_errors.go ├── postgres_test.go ├── postgrestest │ └── postgrestest.go ├── shared │ ├── ctx.go │ ├── ctx_test.go │ └── util.go ├── user.go └── user_test.go ├── store.go └── tx.go /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/.env.example -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/release-it.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/.github/release-it.json -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release-it.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/.github/workflows/release-it.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/.gitignore -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/.golangci.yml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/Makefile -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/Procfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/README.md -------------------------------------------------------------------------------- /bot/bot.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/bot.go -------------------------------------------------------------------------------- /bot/ctx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/ctx.go -------------------------------------------------------------------------------- /bot/handler_admin.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/handler_admin.go -------------------------------------------------------------------------------- /bot/handler_chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/handler_chat.go -------------------------------------------------------------------------------- /bot/handler_common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/handler_common.go -------------------------------------------------------------------------------- /bot/handler_file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/handler_file.go -------------------------------------------------------------------------------- /bot/handler_settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/handler_settings.go -------------------------------------------------------------------------------- /bot/handler_settings_channels_and_chats.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/handler_settings_channels_and_chats.go -------------------------------------------------------------------------------- /bot/helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/helpers.go -------------------------------------------------------------------------------- /bot/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/middleware.go -------------------------------------------------------------------------------- /bot/middleware_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/middleware_test.go -------------------------------------------------------------------------------- /bot/security.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/security.go -------------------------------------------------------------------------------- /bot/state/redis_store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/state/redis_store.go -------------------------------------------------------------------------------- /bot/state/state.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/state/state.go -------------------------------------------------------------------------------- /bot/state/state_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/state/state_string.go -------------------------------------------------------------------------------- /bot/state/store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/bot/state/store.go -------------------------------------------------------------------------------- /core/chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/core/chat.go -------------------------------------------------------------------------------- /core/chattype_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/core/chattype_string.go -------------------------------------------------------------------------------- /core/download.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/core/download.go -------------------------------------------------------------------------------- /core/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/core/file.go -------------------------------------------------------------------------------- /core/kind.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/core/kind.go -------------------------------------------------------------------------------- /core/kind_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/core/kind_string.go -------------------------------------------------------------------------------- /core/metadata.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/core/metadata.go -------------------------------------------------------------------------------- /core/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/core/user.go -------------------------------------------------------------------------------- /core/user_settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/core/user_settings.go -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/go.sum -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/main.go -------------------------------------------------------------------------------- /main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/main_test.go -------------------------------------------------------------------------------- /pkg/build_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/build_info.go -------------------------------------------------------------------------------- /pkg/health/health.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/health/health.go -------------------------------------------------------------------------------- /pkg/log/color.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/log/color.go -------------------------------------------------------------------------------- /pkg/log/ctx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/log/ctx.go -------------------------------------------------------------------------------- /pkg/log/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/log/log.go -------------------------------------------------------------------------------- /pkg/secretid/generate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/secretid/generate.go -------------------------------------------------------------------------------- /pkg/secretid/hashids.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/secretid/hashids.go -------------------------------------------------------------------------------- /pkg/secretid/secretid.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/secretid/secretid.go -------------------------------------------------------------------------------- /pkg/snip/unique.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/snip/unique.go -------------------------------------------------------------------------------- /pkg/tg/chat_input.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/tg/chat_input.go -------------------------------------------------------------------------------- /pkg/tg/chat_input_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/tg/chat_input_test.go -------------------------------------------------------------------------------- /pkg/tg/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/tg/errors.go -------------------------------------------------------------------------------- /pkg/tg/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/tg/handler.go -------------------------------------------------------------------------------- /pkg/tg/join_link.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/tg/join_link.go -------------------------------------------------------------------------------- /pkg/tg/md.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/tg/md.go -------------------------------------------------------------------------------- /pkg/tg/mtproto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/pkg/tg/mtproto.go -------------------------------------------------------------------------------- /service/admin.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/service/admin.go -------------------------------------------------------------------------------- /service/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/service/auth.go -------------------------------------------------------------------------------- /service/chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/service/chat.go -------------------------------------------------------------------------------- /service/chat_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/service/chat_test.go -------------------------------------------------------------------------------- /service/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/service/file.go -------------------------------------------------------------------------------- /sqlboiler.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/sqlboiler.toml -------------------------------------------------------------------------------- /store/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/errors.go -------------------------------------------------------------------------------- /store/migrations.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/migrations.go -------------------------------------------------------------------------------- /store/postgres/base.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/base.go -------------------------------------------------------------------------------- /store/postgres/chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/chat.go -------------------------------------------------------------------------------- /store/postgres/chat_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/chat_test.go -------------------------------------------------------------------------------- /store/postgres/dal/boil_queries.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/dal/boil_queries.go -------------------------------------------------------------------------------- /store/postgres/dal/boil_table_names.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/dal/boil_table_names.go -------------------------------------------------------------------------------- /store/postgres/dal/boil_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/dal/boil_types.go -------------------------------------------------------------------------------- /store/postgres/dal/chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/dal/chat.go -------------------------------------------------------------------------------- /store/postgres/dal/download.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/dal/download.go -------------------------------------------------------------------------------- /store/postgres/dal/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/dal/file.go -------------------------------------------------------------------------------- /store/postgres/dal/psql_upsert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/dal/psql_upsert.go -------------------------------------------------------------------------------- /store/postgres/dal/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/dal/user.go -------------------------------------------------------------------------------- /store/postgres/download.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/download.go -------------------------------------------------------------------------------- /store/postgres/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/file.go -------------------------------------------------------------------------------- /store/postgres/migrations/10_document_new_subscription.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/10_document_new_subscription.go -------------------------------------------------------------------------------- /store/postgres/migrations/11_user_ref.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/11_user_ref.go -------------------------------------------------------------------------------- /store/postgres/migrations/12_file_copyright.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/12_file_copyright.go -------------------------------------------------------------------------------- /store/postgres/migrations/13_file_linked_post_uri.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/13_file_linked_post_uri.go -------------------------------------------------------------------------------- /store/postgres/migrations/1_user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/1_user.go -------------------------------------------------------------------------------- /store/postgres/migrations/2_document.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/2_document.go -------------------------------------------------------------------------------- /store/postgres/migrations/3_download.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/3_download.go -------------------------------------------------------------------------------- /store/postgres/migrations/4_foreign_fix_and_index.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/4_foreign_fix_and_index.go -------------------------------------------------------------------------------- /store/postgres/migrations/5_public_id.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/5_public_id.go -------------------------------------------------------------------------------- /store/postgres/migrations/6_settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/6_settings.go -------------------------------------------------------------------------------- /store/postgres/migrations/7_rename_doc_to_file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/7_rename_doc_to_file.go -------------------------------------------------------------------------------- /store/postgres/migrations/8_chat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/8_chat.go -------------------------------------------------------------------------------- /store/postgres/migrations/9_file_restriction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/9_file_restriction.go -------------------------------------------------------------------------------- /store/postgres/migrations/migrations.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/migrations/migrations.go -------------------------------------------------------------------------------- /store/postgres/postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/postgres.go -------------------------------------------------------------------------------- /store/postgres/postgres_errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/postgres_errors.go -------------------------------------------------------------------------------- /store/postgres/postgres_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/postgres_test.go -------------------------------------------------------------------------------- /store/postgres/postgrestest/postgrestest.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/postgrestest/postgrestest.go -------------------------------------------------------------------------------- /store/postgres/shared/ctx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/shared/ctx.go -------------------------------------------------------------------------------- /store/postgres/shared/ctx_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/shared/ctx_test.go -------------------------------------------------------------------------------- /store/postgres/shared/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/shared/util.go -------------------------------------------------------------------------------- /store/postgres/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/user.go -------------------------------------------------------------------------------- /store/postgres/user_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/postgres/user_test.go -------------------------------------------------------------------------------- /store/store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/store.go -------------------------------------------------------------------------------- /store/tx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bots-house/share-file-bot/HEAD/store/tx.go --------------------------------------------------------------------------------