Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate partially to TS #1108

Merged
merged 90 commits into from
Aug 22, 2020
Merged
Changes from 1 commit
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
5dec692
Heavy lifting
KnorpelSenf Aug 18, 2020
95a6260
Undo temporary rename
KnorpelSenf Aug 18, 2020
e3c4c17
Reformat
KnorpelSenf Aug 18, 2020
cf74fa2
Catch things
KnorpelSenf Aug 18, 2020
965cb4f
Update src/core/network/error.ts
KnorpelSenf Aug 19, 2020
9c0912d
Incorporate changes from review
KnorpelSenf Aug 19, 2020
6a23fee
Merge branch 'develop' of github.com:KnorpelSenf/telegraf into develop
KnorpelSenf Aug 19, 2020
1c7b2f2
Update src/core/network/webhook.ts
KnorpelSenf Aug 19, 2020
095b7d8
Update src/extra.ts
KnorpelSenf Aug 19, 2020
757ea0f
Update src/extra.ts
KnorpelSenf Aug 19, 2020
af83e86
Update tsconfig.json
KnorpelSenf Aug 19, 2020
b9c3c75
Merge branch 'develop' of github.com:KnorpelSenf/telegraf into develop
KnorpelSenf Aug 19, 2020
df4691b
Update src/extra.ts
KnorpelSenf Aug 19, 2020
6cbc4ed
Fix import
KnorpelSenf Aug 19, 2020
a45e349
Merge branch 'develop' of github.com:KnorpelSenf/telegraf into develop
KnorpelSenf Aug 19, 2020
f0e7f67
Add missing member declaration
KnorpelSenf Aug 19, 2020
eb595c8
Fix import
KnorpelSenf Aug 19, 2020
f7317fd
Propagate recent type change to caller function
KnorpelSenf Aug 19, 2020
f78c6ef
Eliminate pass thru middleware
KnorpelSenf Aug 19, 2020
21aeae2
Update src/session.ts
KnorpelSenf Aug 19, 2020
33ee9cd
Update src/session.ts
KnorpelSenf Aug 19, 2020
af704fe
Remove prettier-ignore where code was touched
KnorpelSenf Aug 19, 2020
93523fd
Merge branch 'develop' of github.com:KnorpelSenf/telegraf into develop
KnorpelSenf Aug 19, 2020
e092d80
Update src/core/network/client.ts
KnorpelSenf Aug 19, 2020
83584f3
Update src/core/network/error.ts
KnorpelSenf Aug 19, 2020
58d8c44
Undo accidental reformattings
KnorpelSenf Aug 19, 2020
195ff20
Merge branches 'develop' and 'develop' of github.com:KnorpelSenf/tele…
KnorpelSenf Aug 19, 2020
ba03e85
Update error.ts
KnorpelSenf Aug 19, 2020
2e4a9d4
Update composer.ts
KnorpelSenf Aug 19, 2020
db76079
Provide docs for util function
KnorpelSenf Aug 19, 2020
0e16380
Fix docs
KnorpelSenf Aug 19, 2020
057d07e
Update src/core/network/error.ts
KnorpelSenf Aug 19, 2020
cf9bd20
Improve utils
KnorpelSenf Aug 19, 2020
f331ff7
Merge branch 'develop' of github.com:KnorpelSenf/telegraf into develop
KnorpelSenf Aug 19, 2020
15803a9
Untangle types in stage and wizard
wojpawlik Aug 20, 2020
e8cbc7b
Update src/core/network/client.ts
KnorpelSenf Aug 21, 2020
04d8fa5
Update src/core/network/webhook.ts
KnorpelSenf Aug 21, 2020
d02ae24
Update src/core/network/webhook.ts
KnorpelSenf Aug 21, 2020
a3084b2
Update src/core/network/webhook.ts
KnorpelSenf Aug 21, 2020
7d3c9e7
Update src/core/network/webhook.ts
KnorpelSenf Aug 21, 2020
ffc7609
Update src/extra.ts
KnorpelSenf Aug 21, 2020
dd1c31b
Update src/extra.ts
KnorpelSenf Aug 21, 2020
1f34ec9
Update src/extra.ts
KnorpelSenf Aug 21, 2020
2e6d92d
Update src/extra.ts
KnorpelSenf Aug 21, 2020
b9b583c
Update src/extra.ts
KnorpelSenf Aug 21, 2020
fd6ab26
Update src/extra.ts
KnorpelSenf Aug 21, 2020
d4d61bd
Update src/extra.ts
KnorpelSenf Aug 21, 2020
ae38f70
Update src/markup.ts
KnorpelSenf Aug 21, 2020
905bf9a
Update src/scenes/base.ts
KnorpelSenf Aug 21, 2020
2865f0c
Update src/telegram.ts
KnorpelSenf Aug 21, 2020
86ba066
Update src/scenes/wizard/index.ts
KnorpelSenf Aug 21, 2020
6a5fa38
Update src/telegram.ts
KnorpelSenf Aug 21, 2020
8739432
Update src/markup.ts
KnorpelSenf Aug 21, 2020
4519f04
Update src/markup.ts
KnorpelSenf Aug 21, 2020
ce2ebd0
Remove useless cast
KnorpelSenf Aug 21, 2020
59a9ca5
Simplify predicate
KnorpelSenf Aug 21, 2020
6a00aec
for of loop instead of forEach call
KnorpelSenf Aug 21, 2020
2af1d6d
Reintroduce missing member to error class
KnorpelSenf Aug 21, 2020
cf44229
Merge branch 'develop' of github.com:KnorpelSenf/telegraf into develop
KnorpelSenf Aug 21, 2020
7305593
Update telegram-typing dep
KnorpelSenf Aug 21, 2020
8032635
Allow markup supplier function
KnorpelSenf Aug 21, 2020
e60c40f
Type fixes
KnorpelSenf Aug 21, 2020
e308580
Update src/extra.ts
KnorpelSenf Aug 21, 2020
bff48c5
Slightly improve `Middleware.Ext`
wojpawlik Aug 21, 2020
e064eee
Postpone markup.ts rewrite
KnorpelSenf Aug 21, 2020
7504137
Add types to replicators.ts
KnorpelSenf Aug 21, 2020
9e1ba77
Fixes
KnorpelSenf Aug 21, 2020
3257f3a
Merge branch 'develop' of github.com:KnorpelSenf/telegraf into develop
KnorpelSenf Aug 21, 2020
f9022b6
Fix after merge
KnorpelSenf Aug 21, 2020
d867026
Move SceneContextOptions to namespace
KnorpelSenf Aug 21, 2020
1be6d8f
Update types.ts
KnorpelSenf Aug 21, 2020
fb42b1b
Update src/core/network/client.ts
KnorpelSenf Aug 21, 2020
846fea2
Fixes due to changed middleware return type
KnorpelSenf Aug 21, 2020
60635c3
Make reply_markup Partial in extra.ts
KnorpelSenf Aug 21, 2020
e649a46
Update src/composer.ts
KnorpelSenf Aug 21, 2020
f7c2121
Update src/composer.ts
KnorpelSenf Aug 21, 2020
6962069
Update src/composer.ts
KnorpelSenf Aug 21, 2020
d5207a4
Update src/extra.ts
KnorpelSenf Aug 21, 2020
f3300a3
Update src/extra.ts
KnorpelSenf Aug 21, 2020
10acc32
Remove Partial again
KnorpelSenf Aug 21, 2020
bc487fa
Undo half-baked changes to files
wojpawlik Aug 21, 2020
995db7f
Add `ExtraContact` and `ExtraVenue`
wojpawlik Aug 21, 2020
f1064cb
Upgrade Typescript
wojpawlik Aug 21, 2020
2c18e5e
Avoid Object.fromEntries
KnorpelSenf Aug 21, 2020
a8b6acd
Re-add `safePassThru` for 3.x compat
wojpawlik Aug 21, 2020
595296b
Clean up nil removal
wojpawlik Aug 21, 2020
1184af8
Misc
wojpawlik Aug 21, 2020
8cbe70c
`static readonly Markup`
wojpawlik Aug 21, 2020
324b7aa
Do not return void value
KnorpelSenf Aug 21, 2020
b497084
Fix
wojpawlik Aug 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reintroduce missing member to error class
  • Loading branch information
KnorpelSenf committed Aug 21, 2020
commit 2af1d6da60680379dda3912712e339956542eb26
2 changes: 2 additions & 0 deletions src/core/network/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ class TelegramError extends Error {
code: number
response: ErrorPayload
description: string
parameters?: {}
constructor(payload: ErrorPayload, readonly on = {}) {
super(`${payload.error_code}: ${payload.description}`)
this.code = payload.error_code
this.response = payload
this.description = payload.description
KnorpelSenf marked this conversation as resolved.
Show resolved Hide resolved
this.parameters = payload.parameters
}
}

Expand Down