GithubHelp home page GithubHelp logo

monsterdeveloper / java-telegram-bot-tutorial Goto Github PK

View Code? Open in Web Editor NEW
307.0 29.0 99.0 926 KB

Java Telegram Bot Tutorial. Feel free to submit issue if you found a mistake.

Home Page: https://monsterdeveloper.gitbook.io/java-telegram-bot-tutorial/

Java 100.00%
telegram bot java tutorial guide book bots chatbot chatbots telegrambot

java-telegram-bot-tutorial's Introduction

search
keywords
table of contents
getting started
readme
  • Note: this guide is not maintained. It's open for all contributions through GitHub.

Introduction

Book Status

Hello everyone! While reading this book you will learn how to create Telegram Bots from start to finish. I assume you already know Java programming language.

All sources are available at GitHub repository.

Table of contents

Credits

java-telegram-bot-tutorial's People

Contributors

2fortunately avatar clevero avatar gitbook-bot avatar monsterdeveloper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java-telegram-bot-tutorial's Issues

Problem executing execute(msg) on sendPhoto

Error:(65, 20) java: method execute in class org.telegram.telegrambots.bots.AbsSender cannot be applied to given types;
required: Method
found: org.telegram.telegrambots.api.methods.send.SendPhoto
reason: inferred type does not conform to upper bound(s)
inferred: org.telegram.telegrambots.api.methods.send.SendPhoto
upper bound(s): org.telegram.telegrambots.api.methods.BotApiMethod

This Tutorial is Outdated

As in July of 2023, this tutorial is outdated. Thus with the current version of TelegramBots API (Bot API v6.7) and RubenLagus library (6.7.0) user cannot just follow the tutorial.

I will try to fix it chapter by chapter.

if the internet connection is lost

Hello, good afternoon, a question.
How is it done to cancel the sending of a message since it takes me a long time to send it, or how do I get it if the internet connection is lost, retrieve the message and send it back?

Question about Crawlers

Hi. sorry I ask my question in here. I emailed you to "[email protected]" but it seems your server is not working.
I want to know if we could write a crawler using telegram bots. And also could we join our bot to a public channel without any permission from the administrators like other real users in the telegram? (is invite link useable in this ?)

Thanks. Regards.

user, channel

How do I check subscribe to my channel from a user perspective?

problem running first lesson bot

I want to write my first bot for telegram.
I wrote the code as you said in lesson one but while i'm running this on my windows 10 laptop i get this get exception

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableList
	at com.google.inject.internal.Errors.<clinit>(Errors.java:709)
	at com.google.inject.internal.InternalInjectorCreator.<init>(InternalInjectorCreator.java:62)
	at com.google.inject.Guice.createInjector(Guice.java:96)
	at com.google.inject.Guice.createInjector(Guice.java:73)
	at com.google.inject.Guice.createInjector(Guice.java:62)
	at org.telegram.telegrambots.ApiContext.getInjector(ApiContext.java:46)
	at org.telegram.telegrambots.ApiContext.getInstance(ApiContext.java:25)
	at org.telegram.telegrambots.bots.TelegramLongPollingBot.<init>(TelegramLongPollingBot.java:31)
	at MyFirstBot.<init>(MyFirstBot.java:9)
	at Main.main(Main.java:14)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableList
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 10 more

Process finished with exit code 1

Execute doesn't compile

Hi,

I've copy pasted the code into IntelliJ, and the only error is that execute(new_message) and execute(message) doesnt compile. It gives Error:(38, 21) java: cannot find symbol.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.