mantisbt-plugins / TelegramBot

15 stars 12 forks source link

Cant activate the plugin - trying to connect to telegram #36

Closed fstltna closed 3 months ago

fstltna commented 2 years ago

Trying to connect up telegram like this: telegram_01 I get this error: RepoSetup04 :

Any ideas on what I have to do?

brlumen commented 2 years ago

Please describe your configuration.

пт, 12 авг. 2022 г., 17:32 Marisa Giancarla @.***>:

Trying to connect up telegram like this: [image: telegram_01] https://user-images.githubusercontent.com/883076/184336851-e5109b53-6a0d-4708-a266-6ded262a357c.png I get this error: [image: RepoSetup04] https://user-images.githubusercontent.com/883076/184336463-77d72af8-cd80-4ef0-bdc7-461024ecb3f8.png :

Any ideas on what I have to do?

— Reply to this email directly, view it on GitHub https://github.com/mantisbt-plugins/TelegramBot/issues/36, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGRAVWC7VP44SXDTDBNYOTVYYR5BANCNFSM56LG2APQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

fstltna commented 2 years ago

Ubuntu 20.04 with latest MantisBT (2.25.5 I believe) and latest telegram plugin. What other do you need?

brlumen commented 2 years ago

Database version. Database provider.

пт, 12 авг. 2022 г., 18:34 Marisa Giancarla @.***>:

Ubuntu 20.04 with latest MantisBT (2.25.5 I believe) and latest telegram plugin. What other do you need?

— Reply to this email directly, view it on GitHub https://github.com/mantisbt-plugins/TelegramBot/issues/36#issuecomment-1213017685, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGRAVSOJHALXZMZYMP3PFDVYYZFNANCNFSM56LG2APQ . You are receiving this because you commented.Message ID: @.***>

fstltna commented 2 years ago

bug_database

josemaX commented 2 years ago

Trying to connect up telegram like this: telegram_01 I get this error: RepoSetup04 :

Any ideas on what I have to do?

It seems your telegram ID is too large for the database field type. Are you sure that is your user ID? (I don't think Telegram has 5 billion users) I think they were about 700 millions months ago.

josemaX commented 2 years ago

I see the ID has nothing to see in number of user as I have one 7xx million from several years ago.

Then, the problem seems to be (if ID is correct) it doesn't fit in an INTEGER Column in MySQL: (C&P)

"The signed range of INT is from -2147483648 to 2147483647 and the unsigned range is from 0 to 4294967295. You can specify signed or unsigned int in the column definition"

brlumen commented 2 years ago

And there is. I need some time to release a patch.