rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.68k stars 1.18k forks source link

12 Mega Byteeeeeeeeeee ://// #208

Closed smaznet closed 7 years ago

smaznet commented 7 years ago

hi to programmer of this good library bot i have a problem with it and my problem is

BIG SIZE OF .jar output

why this out put is very big?

MonsterDeveloper commented 7 years ago

Maybe there are lot's of dependencies? Try to make .jar with the help from my book.

smaznet commented 7 years ago

this not helped me...

i have a server and i can build jar

witch link should i download your library.?

i downloaded this: Download the jar(including all dependencies) from here

what is difference?

MonsterDeveloper commented 7 years ago

I linked my book. Read it. image

MonsterDeveloper commented 7 years ago

You know, my JAR is big too. image

smaznet commented 7 years ago

yes i say it too😐

my android apps size is only 3 mb but i dont know why your library is big πŸ˜•

MonsterDeveloper commented 7 years ago

Why do you care about jar size? It's server-side so user can't see difference between 3mb and 13mb

smaznet commented 7 years ago

yes it is true, bot uploading to server in my network took 15 mins

smaznet commented 7 years ago

witch dependencies increased this library size?

you can use alternatives

i want make your library betterπŸ˜†

MonsterDeveloper commented 7 years ago

My library? What do you mean? And if it takes 15 mins to upload 13 mb, I recommend you to change your network provider before coding. πŸ˜†

smaznet commented 7 years ago

πŸ˜‚ πŸ˜‚ πŸ˜‚ πŸ˜‚

yes your library (https://github.com/rubenlagus/TelegramBots)

MonsterDeveloper commented 7 years ago

If you don't know, this is not my library. This library is developer by @rubenlagus. I am just contributor.

smaznet commented 7 years ago

@MonsterDeveloper :|||||||||||

smaznet commented 7 years ago

@rubenlagus hi , are you hear me????

rubenlagus commented 7 years ago

So, the problem is that the Jar is 13MB big? Sorry about that. You can see the dependencies that it has at https://github.com/rubenlagus/TelegramBots/blob/2.4.4.5/telegrambots/pom.xml.

smaznet commented 7 years ago

@rubenlagus are all of libraries is required?

smaznet commented 7 years ago

i want fork your library and remove unnecessary libraries

rubenlagus commented 7 years ago

They are required for my implementation.

You can use TelegramBots-meta only (https://github.com/rubenlagus/TelegramBots/tree/master/telegrambots-meta) and then implement the concrete version of BotSession and Webhook on your own. TelegramBots-Meta jar is only 4.6MB (https://github.com/rubenlagus/TelegramBots/releases).

smaznet commented 7 years ago

please follow my account, a new fork comming soon.... πŸ˜‰πŸ˜‰πŸ˜‰