Commit graph

23 commits

Author SHA1 Message Date
callebtc
d7dc6f71aa check for descr hash 2022-08-14 21:50:14 +02:00
calle
0631fd53eb
WIP: Satdress (#331)
* satdress rebase

* check config

* satdress rebase

* check config

* check for invoices

* return error

* Update inline photo v5 (#332)

* update url

* round logo

* resize

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>

* new logo (#333)

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>

* help (#334)

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>

* add file (#335)

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>

* markdown (#336)

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>

* satdress rebase

* check config

* satdress rebase

* check for invoices

* return error

* satdress works

* add lnbits

* timeout

* error checking

* small lnd

* errors

* button fix

Co-authored-by: LightningTipBot <88730856+LightningTipBot@users.noreply.github.com>
2022-04-29 14:28:12 +02:00
gohumble
bf643f103d
🪄 update telebot v3 🤖 (#325)
* 🚧 minor changes to all handlers...

* 🚧 passing callback to tryEditStack

* 🚧 edit and delete callback messages

* 🚧 refactor again

* 🚧 uncomment this

* 🚧 using ctx.Message().Text

* 🚧 refactor

* 🚧 refactor

* 🚧 uncomment

* context not queruy

* 🚧 update forked lightningtipbot

* 🚧 reset ArticleResult

* fix inline receive

* readd shop

* remove chat from shopView

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-03-27 22:19:38 +02:00
calle
6e7886e029
payerdata hash fix (#307) 2022-02-11 12:56:30 +01:00
LightningTipBot
00b07998e6
Payerdata receive (#306)
* payerdata receive

* more

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-02-11 12:40:18 +01:00
calle
373b4a9752
payerdata receive (#305) 2022-02-11 12:16:46 +01:00
LightningTipBot
24e321e5ed
bot pic (#303)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-02-11 10:47:40 +01:00
gohumble
725af545ab
WIP: adding downloadMyProfilePicture and botProfilePicture to LNURL Meta (#297)
* adding downloadMyProfilePicture and botProfilePicture to serveLNURLFirst (pay)

* fix image download to ram

* add downloadProfilePicture

* add cache and download limit

* error checks

* user picture

* empty entry bug check for uuid

* check

* fix example

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-02-11 10:04:08 +01:00
LightningTipBot
e275b8760a
anon_id_sha256 (#262)
* anon_id_sha256

* refactor sha256 hash to strings package

* oops

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-01-05 01:28:17 +01:00
gohumble
01710f3385
separate lnurl and api server (#261)
* separate lnurl and api server

* add lndhub handler and proxy

* update proxy

* fix AppendRoute with empty methods

* add logs

* fix trace

* dump request

* parse bearer token

* exclude banned users

* exclude banned users

* fix log levels
2022-01-05 00:09:11 +01:00
LightningTipBot
09d3af411e
Better longging 1337 (#206)
* speed up tx lock

* better logging and lnurl lightning: prefix

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-24 15:34:17 +01:00
LightningTipBot
a4f5b21f1d
Invoice events refactoring (#168)
* speed up tx lock

* clean up

* refactor lnurl comment notification

* fix function name

* transaction: do not check balance; refactor invoice notifications

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-19 15:41:01 +01:00
LightningTipBot
88bbd4d2cf
Fix lnurlpserver (#132)
* fix server

* go-lnurl v1.8.4

* encode

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-11-15 01:12:52 +01:00
LightningTipBot
9290f55fa4
fix server (#130)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-11-15 00:02:10 +01:00
LightningTipBot
0653498e0f
Lnurl withdraw (#129)
* go-lnurl --> v1.8.4

* clean up comments

* delete HandleLNURL()

* lnurl-withdrawal

* actual file

* remove comments

* remove comments

* refactor translation

* translations

* add type check and

* translations

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
Co-authored-by: lngohumble <lngohumble@gmail.com>
2021-11-14 22:25:47 +01:00
LightningTipBot
11edce049e
General amount (#118)
* generalized amount started

* add new file

* uncomment old pay

* longer comments

* lnurl pay with generalized amount input

* generalized amount for /invoice

* amount input for all commands

* remove logging

* delete old comments
2021-10-30 21:26:01 +02:00
LightningTipBot
e4833bd9c6
User cache (#117)
* adding users cache in memory

* adding users cache in memory

* adding eko/gocache and removing CopyLowercaseUser

* using UpdateUserRecord

* updateCachedUser in user states

* remove redundant updatePersistentUser

* refactor

* remove cachedUser

* remove user chan

* errors for failed invoice creation

* errors for failed invoice and failed pay

* add GetUserBalanceCached inline commands

* translation

* remove redundant set user state reset state

* update cache ttl

Co-authored-by: lngohumble <lngohumble@gmail.com>
2021-10-29 22:04:53 +02:00
LightningTipBot
8da9e0c38c
atoi is 32 bit only, change to ParseInt (#109) 2021-10-24 20:52:24 +02:00
LightningTipBot
fd9ad39b0c
anonymous user ID for lnurl (#107)
* anonymous user ID for lnurl

* anonymous lnurl

* migrate at every start, not good

* anon id at user creation

* migrations file

* fix database migration task

* remove comment

* anon label

Co-authored-by: lngohumble <lngohumble@gmail.com>
2021-10-24 20:31:52 +02:00
LightningTipBot
10c9121cc7
lnurl for user id (#104)
* lnurl for user id

* adjust help
2021-10-18 10:30:07 +02:00
LightningTipBot
903cc3c2e2
Lnurlp comments (#89)
* lnurl comments for RECEIVING

* fix import cycle

* fix import

* rename WebhookServer to Server

* rename LNURLInvoice to Invoice

* add str package. MarkdownEscape lnurl.Invoice comment

* add str package

* check for comment length

* lnurl pay with comment

* lnurl pay with comment

* check for wallet existence

* repackage main to internal

Co-authored-by: lngohumble <lngohumble@gmail.com>
2021-10-07 00:21:21 +03:00
gohumble
fbbe18d7a7
add interceptor and handler context (#69)
* add interceptor for handler context

* remove user load

* remove UserInitializedWallet

* remove getuser invocation

* add lnbits user to inlineFaucet

* set wallet client

* lnbits user to inline receive

* lnbits user to inline send

* add context to handleInlineReceiveQuery

* add handler.go

* fix help message

* fix handler registration

* rename

* check if reply to is nil

* remove unwanted stuff

* error handlers

* remove client from wallet

* rename force to require

* string fixes

* add intercept.Func

* add PrivateChat check

* remove private chat requirement for anytexthandler

* fix callback

* errors fixed

* fix callback

* loadUser

* do not require

* check type in interceptor

* check type in interceptor

* check for user wallets

* allow send for toUser with wallet but not initialized

* fix reply to context

* mdescape

* strfux

* set state columns only

* update str

* set user now

* anytext should not load user outside pm

* rename endpoint to donationEndpoint

* register uppercase endpoints and add comments

* fix photos in logMessageInterceptor

* reduce log level to trace

Co-authored-by: LightningTipBot <hWOofXvq4m@mail.com>
2021-09-21 21:35:10 +02:00
gohumble
acf0cb5af6 Initial commit 2021-09-10 08:52:44 +02:00