-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Rewrite everything with mtcute (#3)
- reimplements bot logic using `mtcute` instead of `grammy` :3 - reimplements i18n using raw `@fluent/bundle` instead of `@grammy/i18n` - updates project structure, separates data and telegram logic - adds support for files up to 2GB instead of 50MB (as a side effect of not using bot api), fixes #2 - adds support for parallel downloads (as a side effect of using mtcute) - removes weird & ugly inline upload fix (as a side effect of not using bot api) - improves error handling
- Loading branch information
Showing
39 changed files
with
2,358 additions
and
1,956 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ build | |
.git | ||
.idea | ||
.vscode | ||
sqlite.db | ||
data |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,5 @@ yarn-error.log* | |
.fleet | ||
.vscode | ||
|
||
# SQLite DB | ||
sqlite.db | ||
# Runtime Persistence | ||
/data |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CREATE TABLE `requests` ( | ||
`id` text PRIMARY KEY NOT NULL, | ||
`author_id` integer NOT NULL, | ||
`url` text NOT NULL | ||
); | ||
--> statement-breakpoint | ||
CREATE TABLE `settings` ( | ||
`id` integer PRIMARY KEY NOT NULL, | ||
`output` text, | ||
`attribution` integer DEFAULT 0 NOT NULL, | ||
`language` text | ||
); | ||
--> statement-breakpoint | ||
CREATE TABLE `users` ( | ||
`id` integer PRIMARY KEY NOT NULL, | ||
`downloads` integer DEFAULT 0 | ||
); | ||
--> statement-breakpoint | ||
CREATE UNIQUE INDEX `settings_id_unique` ON `settings` (`id`);--> statement-breakpoint | ||
CREATE UNIQUE INDEX `users_id_unique` ON `users` (`id`); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.