-
Notifications
You must be signed in to change notification settings - Fork 187
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
TypeError: (0 , big_integer_1.default) is not a function #244
Comments
Can you include a complete reproducible example of the error you are encountering? |
of course, here you are:
``
import bigInt from 'big-integer';
@Injectable()
export class TelegramService {
private client: TelegramClient;
private stringSession: StringSession;
{... code..}
async getChatByChannelId(channelNum: number) {
const channelId = bigInt(2052204449); // Here is the error message
}
}
``
Il giorno gio 27 giu 2024 alle ore 05:01 Peter Olson <
***@***.***> ha scritto:
… Can you include a complete reproducible example of the error you are
encountering?
—
Reply to this email directly, view it on GitHub
<#244 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK3W5WXDDOZANNM3KHYWOB3ZJN6CLAVCNFSM6AAAAABJ6WZK7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJTGEYTOMZYGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Questo documento è formato esclusivamente per il destinatario. *
*Tutte le informazioni ivi contenute, compresi eventuali allegati, sono da
ritenere esclusivamente confidenziali e riservate secondo i termini del
vigente D.Lgs. 196/2003 in materia di privacy e del Regolamento europeo
679/2016 - GDPR - e quindi ne è proibita l’utilizzazione ulteriore non
autorizzata. *
*Se avete ricevuto per errore questo messaggio, Vi preghiamo cortesemente
di contattare immediatamente il mittente e cancellare la e-mail. *
Please don't print this e-mail. Confidentiality Notice
This e-mail message including any attachments is for the sole use of the
intended recipient and may contain confidential and privileged information
pursuant to Legislative Decree 196/2003 and the European General Data
Protection Regulation 679/2016 - GDPR
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
*Grazie - Thank you*
*P**lease consider the environment before printing this email*
|
@lucaimbalzano That's not a complete reproducible example because I can't just copy it and run it myself. If I do this:
I do not get any errors. As an aside, it's generally better to pass strings to
|
okok, i'm using nestJs so you cannot litterally copy and paste..
here my controller:
here my server log:
|
@lucaimbalzano Please provide a minimal, complete, reproducible example of the error.
Try to create the smallest program possible that can reproduce the issue. If the issue only happens with NestJS, please link to a repo demonstrating the problem with minimal setup. |
This is my log where i have the error:
Essentially i try to convert from a number to a BigInteger without success:
const channelId = BigInteger(2052204449);
The text was updated successfully, but these errors were encountered: