com.pengrad.telegrambot.AttachName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Stas Parshin
* 29 July 2018
*/
public class AttachName {
private AttachName() {}
private static final AtomicInteger counter = new AtomicInteger();
public static String next() {
return "attach" + counter.incrementAndGet();
}
public static void reset() {
counter.set(0);
}
}